2021-04-03 23:22:35 -04:00
|
|
|
<main class="container d-flex justify-content-center">
|
|
|
|
|
|
|
|
<div class="col-12 col-md-10 col-lg-9 col-xl-8 col-xxl-7 pb-2 mb-4 mt-3">
|
|
|
|
|
|
|
|
<div class="post border-bottom border-gray pb-4 mb-3">
|
|
|
|
|
|
|
|
<h2 class="post-title fs-2 fw-normal mb-2"><%= raw @post.title %></h2>
|
|
|
|
|
2021-04-05 16:51:59 -04:00
|
|
|
<div class="post-date font-monospace text-gray-400 <%= if length(@post.tags) == 0, do: "mb-3" %>">
|
|
|
|
<%= icon_div @socket, "mdi-calendar-clock", [class: "icon baseline me-2"] %><%= @post.date |> format_date() %>
|
|
|
|
by <%= icon_div @socket, "mdi-account", [class: "icon baseline me-1"] %>Adam Piontek
|
2021-04-03 23:22:35 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= if length(@post.tags) > 0 do %>
|
2021-04-05 16:51:59 -04:00
|
|
|
<div class="post-tags fs-smaller mb-3">
|
2021-04-03 23:22:35 -04:00
|
|
|
<%= icon_div @socket, "mdi-tag-multiple", [class: "icon baseline"] %>
|
|
|
|
<%= for {tag, i} <- Enum.with_index(@post.tags) do %>
|
|
|
|
#<%= tag %><%= i < (length(@post.tags) - 1) && "," || "" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2021-04-05 16:51:59 -04:00
|
|
|
<div class="post-lede">
|
2021-04-03 23:22:35 -04:00
|
|
|
<%= raw @post.lede %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="post-body">
|
|
|
|
<%= raw @post.body %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</main>
|