add permalink to note

This commit is contained in:
inhji 2023-06-30 13:18:32 +02:00
parent 6479abcc8b
commit a084153bc0

View file

@ -35,6 +35,10 @@
<%= Markdown.render(@note.content) |> raw %>
</section>
<footer class="mt-8 mx-auto max-w-xl">
<a href={~p"/note/#{note.slug}" class="u-url u-uid"}>Permalink</a>
</footer>
<section class="mt-8 mx-auto max-w-xl">
<%= if !Enum.empty?(@note.images) do %>
<.line />