„lib/chiya_web/controllers/page_html/note.html.heex“ ändern

This commit is contained in:
inhji 2023-06-28 16:35:57 +02:00
parent 9fa3034d11
commit 20c7adcf6c

View file

@ -1,6 +1,6 @@
<div> <article class="h-entry hentry">
<header class="mx-auto max-w-xl"> <header class="mx-auto max-w-2xl">
<h1 class="mt-16 lg:text-5xl md:text-4xl text-3xl font-bold text-theme-base"> <h1 class="mt-16 lg:text-5xl md:text-4xl text-3xl font-bold text-theme-base | p-name">
<%= @note.name %> <%= @note.name %>
</h1> </h1>
<p class="mt-2 leading-6 text-theme-base"> <p class="mt-2 leading-6 text-theme-base">
@ -9,10 +9,10 @@
<% else %> <% else %>
<span>Unpublished</span> <span>Unpublished</span>
<% end %> <% end %>
<time class="font-semibold"><%= pretty_date(@note.published_at) %></time> <time class="font-semibold | dt-published"><%= pretty_date(@note.published_at) %></time>
<.dot /> <.dot />
<span>Last Updated</span> <span>Last Updated</span>
<time class="font-semibold"><%= pretty_date(@note.updated_at) %></time> <time class="font-semibold" datetime={datetime(@note.updated_at)}><%= pretty_date(@note.updated_at) %></time>
<%= if not Enum.empty?(@note.tags) do %> <%= if not Enum.empty?(@note.tags) do %>
<.dot /> <.dot />
<span>Tags</span> <span>Tags</span>
@ -31,7 +31,7 @@
</p> </p>
</header> </header>
<section class="mx-auto mt-8 prose prose-gruvbox md:prose-lg lg:prose-xl"> <section class="mx-auto mt-8 prose prose-gruvbox md:prose-lg lg:prose-xl | p-summary e-content">
<%= Markdown.render(@note.content) |> raw %> <%= Markdown.render(@note.content) |> raw %>
</section> </section>
@ -56,4 +56,4 @@
</div> </div>
<% end %> <% end %>
</section> </section>
</div> </article>