add permalink to note
This commit is contained in:
parent
6479abcc8b
commit
a084153bc0
1 changed files with 4 additions and 0 deletions
|
@ -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 />
|
||||
|
|
Loading…
Reference in a new issue