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 %>
|
<%= Markdown.render(@note.content) |> raw %>
|
||||||
</section>
|
</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">
|
<section class="mt-8 mx-auto max-w-xl">
|
||||||
<%= if !Enum.empty?(@note.images) do %>
|
<%= if !Enum.empty?(@note.images) do %>
|
||||||
<.line />
|
<.line />
|
||||||
|
|
Loading…
Reference in a new issue