„lib/chiya_web/controllers/page_html/note.html.heex“ ändern
This commit is contained in:
parent
968b565336
commit
a2bc863887
1 changed files with 52 additions and 53 deletions
|
@ -1,6 +1,5 @@
|
|||
<section class="max-w-2xl mx-auto">
|
||||
<article class="h-entry hentry">
|
||||
<.header class_title="p-name">
|
||||
<article class="h-entry hentry">
|
||||
<.header class_title="max-w-2xl mx-auto | p-name">
|
||||
<:title><%= @note.name %></:title>
|
||||
</.header>
|
||||
|
||||
|
@ -8,7 +7,7 @@
|
|||
<%= Markdown.render(@note.content) |> raw %>
|
||||
</section>
|
||||
|
||||
<footer class="mt-8 text-theme-base">
|
||||
<footer class="max-w-2xl mx-auto mt-8 text-theme-base">
|
||||
<%= if @note.published_at do %>
|
||||
<span>Published</span>
|
||||
<% else %>
|
||||
|
@ -34,7 +33,7 @@
|
|||
<a href={~p"/note/#{@note.slug}"} class="hidden | u-url u-uid"><%= @note.name %></a>
|
||||
</footer>
|
||||
|
||||
<section class="mt-8">
|
||||
<section class="max-w-2xl mx-auto mt-8">
|
||||
<%= if !Enum.empty?(@note.images) do %>
|
||||
<.line />
|
||||
|
||||
|
@ -55,5 +54,5 @@
|
|||
</div>
|
||||
<% end %>
|
||||
</section>
|
||||
</article>
|
||||
</section>
|
||||
</article>
|
||||
|
||||
|
|
Loading…
Reference in a new issue