„lib/chiya_web/controllers/page_html/note.html.heex“ ändern
This commit is contained in:
parent
9542a87f96
commit
f2b418f07e
1 changed files with 4 additions and 4 deletions
|
@ -1,15 +1,15 @@
|
||||||
<article class="h-entry hentry">
|
<article class="h-entry hentry">
|
||||||
<header class="mx-auto max-w-2xl">
|
<header>
|
||||||
<h1 class="mt-16 lg:text-5xl md:text-4xl text-3xl font-bold text-theme-base | p-name">
|
<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>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="mx-auto mt-8 prose prose-gruvbox md:prose-lg lg:prose-xl | p-summary e-content">
|
<section class="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>
|
||||||
|
|
||||||
<footer class="mt-8 mx-auto max-w-2xl text-theme-base">
|
<footer class="mt-8 text-theme-base">
|
||||||
<%= if @note.published_at do %>
|
<%= if @note.published_at do %>
|
||||||
<span>Published</span>
|
<span>Published</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
@ -41,7 +41,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 mx-auto max-w-2xl">
|
<section class="mt-8">
|
||||||
<%= if !Enum.empty?(@note.images) do %>
|
<%= if !Enum.empty?(@note.images) do %>
|
||||||
<.line />
|
<.line />
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue