Compare commits
10 commits
renovate/f
...
devel
Author | SHA1 | Date | |
---|---|---|---|
8bf1887d85 | |||
bf15790153 | |||
01a3c4f0da | |||
0fac4df834 | |||
fd580b112e | |||
cdf15f5bf8 | |||
4135d72214 | |||
d2db822685 | |||
bb086946a8 | |||
cf3fa19044 |
3 changed files with 18 additions and 5 deletions
|
@ -40,6 +40,19 @@
|
|||
:root[data-mode=dark] .prose {
|
||||
@apply prose-invert;
|
||||
}
|
||||
/* https://stackoverflow.com/questions/5379752/css-style-external-links */
|
||||
a[href]:not(:where(
|
||||
/* exclude hash only links */
|
||||
[href^="#"],
|
||||
/* exclude relative but not double slash only links */
|
||||
[href^="/"]:not([href^="//"]),
|
||||
/* domains to exclude */
|
||||
[href*="//inhji.de"],
|
||||
/* subdomains to exclude */
|
||||
[href*="//cloud.inhji.de"],
|
||||
)):after {
|
||||
content: '↬';
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -72,7 +72,7 @@ defmodule Chiya.Notes.Note do
|
|||
end
|
||||
|
||||
def note_path_admin(note) do
|
||||
~p"/admin/notes/#{note.slug}"
|
||||
~p"/admin/notes/#{note.id}"
|
||||
end
|
||||
|
||||
def note_url(note) do
|
||||
|
|
|
@ -43,14 +43,14 @@
|
|||
|
||||
<aside class="prose max-w-none">
|
||||
<%= if has_outline?(@note) do %>
|
||||
<h3>Outline</h3>
|
||||
<h3><.icon name="hero-rectangle-stack" /> Outline</h3>
|
||||
|
||||
<section>
|
||||
<%= raw(render_outline(@note)) %>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
<h3>Properties</h3>
|
||||
<h3><.icon name="hero-rectangle-group" /> Properties</h3>
|
||||
|
||||
<section>
|
||||
<ul>
|
||||
|
@ -82,7 +82,7 @@
|
|||
<% end %>
|
||||
|
||||
<%= if not Enum.empty?(@note.links_to) do %>
|
||||
<h3>Notes linking here</h3>
|
||||
<h3><.icon name="hero-arrow-down-on-square" /> Notes linking here</h3>
|
||||
<section>
|
||||
<ul>
|
||||
<%= for link <- @note.links_to do %>
|
||||
|
@ -92,7 +92,7 @@
|
|||
</section>
|
||||
<% end %>
|
||||
|
||||
<h3>Admin</h3>
|
||||
<h3><.icon name="hero-wrench-screwdriver" /> Admin</h3>
|
||||
|
||||
<section>
|
||||
<ul>
|
||||
|
|
Loading…
Reference in a new issue