Format dates on blog index.

This commit is contained in:
Jessica Canady 2024-08-25 12:57:01 -04:00
parent a7de9ac1a5
commit b93c22c04b
Signed by: phoenix
SSH key fingerprint: SHA256:aaLOzOrLi+0n4eDZNQKH97PehwRt6KSE5fYJc+ZRKCQ

View file

@ -2,7 +2,7 @@
<%= for post <- @posts do %> <%= for post <- @posts do %>
<div class="post-summary"> <div class="post-summary">
<p class="post-date"><date><%= post.date %></date></p> <p class="post-date"><date><%= JOL.Blog.format_date(post.date) %></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><%= raw post.lede %></p>
</div> </div>