<%= for post <- @posts do %>

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

<%= post_topmatter(@conn, post) %>
<%= if authenticated_for_post?(@conn, post) do %> <%= render "thumb.html", post: post, thumbs: @thumbs %>
<%= raw post |> Content.Post.content_page(1) |> Content.Post.before_more |> process_content |> raw %> <%= if post.content =~ "" do %>

<%= link "Keep Reading", to: Routes.posts_path(@conn, :show, post) %>

<% end %> <%= render "pagination.html", conn: @conn, post: post %>
<% else %> <%= render "password_form.html", post: post, conn: @conn %> <% end %>
<%= 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 %>
<% end %>