This commit is contained in:
Adam Piontek 2021-04-05 22:48:30 -04:00
parent a7e8651c0b
commit bab6d25d40
3 changed files with 11 additions and 3 deletions
lib/home73k_web/live

View file

@ -17,7 +17,7 @@
<div class="post border-bottom border-gray pb-4 mb-3">
<h2 class="post-title fs-2 fw-600 mb-2">
<%= live_redirect "#{post.title}", to: Routes.blog_path(@socket, :show, post) %>
<%= @live_action == :show && post.title || live_redirect "#{post.title}", to: Routes.blog_path(@socket, :show, post) %>
</h2>
<div class="post-date font-monospace text-gray-400 <%= if length(post.tags) == 0, do: "mb-3" %>">