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

<%= link to: Routes.posts_path(@conn, :show, post), class: "u-url" do %> <%= raw post.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.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 %>

Categories: <%= for term <- post.categories do %> <%= link term.name, to: Routes.category_path(@conn, :index_posts, term.slug), class: "p-category" %> <% end %>


<% end %>