Fix blog show page.

This commit is contained in:
Jessica Canady 2024-09-26 15:37:56 -04:00
parent 6d13495145
commit 01afb72a0a
Signed by: phoenix
SSH key fingerprint: SHA256:aaLOzOrLi+0n4eDZNQKH97PehwRt6KSE5fYJc+ZRKCQ

View file

@ -2,8 +2,8 @@
<%= for post <- @posts do %> <%= for post <- @posts do %>
<div class="post-summary"> <div class="post-summary">
<p class="post-date"><date><%= JOL.Blog.format_date(post.date) %></date></p> <p class="post-date"><date><%= JOL.Blog.format_date(post.published_at) %></date></p>
<h3> <.link href={~p"/blog/#{post.slug}"}><%= post.title %> </.link> </h3> <h3> <.link href={~p"/blog/#{post.slug}"}><%= post.title %> </.link> </h3>
<p><%= raw post.lede %></p> <p><%= JOL.Blog.Post.extract_lede(post) %></p>
</div> </div>
<% end %> <% end %>