legendary-doc-site/apps/content/lib/content_web/templates/posts/front.html.eex
2020-07-28 10:54:24 -05:00

15 lines
614 B
Elixir

<article class="<%= post_class(@post) %> h-entry">
<div class="uHidden">
<h1 class="p-name">
<%= link to: Routes.posts_path(@conn, :show, @post), class: "u-url" do %>
<%= raw @post.title %>
<% end %>
</h1>
<%= post_topmatter(@conn, @post) %>
</div>
<div class="Article-content <%= if @post.format, do: @post.format.slug %> e-content">
<%= render "thumb.html", post: @post, thumbs: @thumbs %>
<%= @post |> Content.Post.content_page(@page) |> process_content |> raw %>
</div>
<%= render "pagination.html", conn: @conn, post: @post, current_page: @page %>
</article>