Skip to content

How do I style posts from the PostExtension? #72

Discussion options

You must be logged in to vote

Ha! Got it working thanks to your repo!

So for anyone who might have the same problem, you can layer your layouts by doing something like this:

defmodule MyApp.Layouts.PostLayout do
  use MyApp.Component
  use Tableau.Layout, layout: MyApp.Layouts.RootLayout # <- placing the current layout inside RootLayout

  def template(assigns) do
    temple do
      article do
        render(@inner_content)
      end
    end
  end
end

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sylvesterroos
Comment options

@sylvesterroos
Comment options

Answer selected by sylvesterroos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants