„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">
|
||||||
<article class="h-entry hentry">
|
<.header class_title="max-w-2xl mx-auto | p-name">
|
||||||
<.header class_title="p-name">
|
|
||||||
<:title><%= @note.name %></:title>
|
<:title><%= @note.name %></:title>
|
||||||
</.header>
|
</.header>
|
||||||
|
|
||||||
|
@ -8,7 +7,7 @@
|
||||||
<%= Markdown.render(@note.content) |> raw %>
|
<%= Markdown.render(@note.content) |> raw %>
|
||||||
</section>
|
</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 %>
|
<%= if @note.published_at do %>
|
||||||
<span>Published</span>
|
<span>Published</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
@ -34,7 +33,7 @@
|
||||||
<a href={~p"/note/#{@note.slug}"} class="hidden | u-url u-uid"><%= @note.name %></a>
|
<a href={~p"/note/#{@note.slug}"} class="hidden | u-url u-uid"><%= @note.name %></a>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<section class="mt-8">
|
<section class="max-w-2xl mx-auto mt-8">
|
||||||
<%= if !Enum.empty?(@note.images) do %>
|
<%= if !Enum.empty?(@note.images) do %>
|
||||||
<.line />
|
<.line />
|
||||||
|
|
||||||
|
@ -55,5 +54,5 @@
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
</section>
|
|
||||||
|
|
Loading…
Reference in a new issue