<%= link to: Routes.posts_path(@conn, :show, @post), class: "u-url" do %> <%= raw @post.title %> <% end %>

<%= post_topmatter(@conn, @post) %>
<%= render "thumb.html", post: @post, thumbs: @thumbs %> <%= @post |> Legendary.Content.Post.content_page(@page) |> process_content |> raw %> <%= case @post.categories || [] do %> <% [] -> %> <%= "" %> <% categories -> %>

Categories

<%= for term <- categories do %> <%= link term.name, to: Routes.category_path(@conn, :index_posts, term.slug), class: "rounded-full bg-gray-300 px-4 py-1 mr-2" %> <% end %>
<% end %>
<%= render "pagination.html", conn: @conn, post: @post, current_page: @page %>
<%= if @post.comment_status == "open" do %>

Comments

<%= render "comments.html", post: @post, parent_id: 0, conn: @conn %> <%= render "reply_form.html", comment_changeset: comment_changeset_for_post(@post), post: @post, conn: @conn %>
<% end %>