website/lib/layouts/post_layout.ex

12 lines
235 B
Elixir

defmodule Website.PostLayout do
use Tableau.Layout, layout: Website.RootLayout
use Phoenix.Component
def template(assigns) do
~H"""
<article>
<%= {:safe, render(@inner_content)} %>
</article>
"""
end
end