blog: add hover anchor links

This commit is contained in:
Jesse Peterson
2025-02-04 13:25:00 -08:00
parent 7d36a200f6
commit 5b408eec46
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<span class="header-hidden-anchor">
<h{{ .Level }} id="{{ .Anchor }}">
{{ .Text | safeHTML }}
<a href="#{{ .Anchor }}">#</a>
</h{{ .Level }}>
</span>

View File

@@ -492,4 +492,12 @@ section p {
}
.post blockquote p {
padding:0.5em;
}
.header-hidden-anchor a {
visibility: hidden;
}
.header-hidden-anchor:hover a {
visibility: visible;
}