<%= if is_nil(@posts) do %>

Nothing found.

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

<%= live_redirect "#{post.title}", to: Routes.blog_path(@socket, :show, post) %>

<%= if length(post.tags) > 0 do %> <% end %>
<%= raw post.lede %>
<%= if @live_action == :show do %>
<%= raw post.body %>
<% else %>

<%= live_redirect raw("Read more…"), to: Routes.blog_path(@socket, :show, post), class: "fs-6" %>

<% end %>
<% end %> <% end %> <%= if @live_action in [:index, :page] do %> <% end %>