fix disappearing header links

This commit is contained in:
Ole Mussmann 2025-02-02 18:17:24 +01:00
parent 14b7bb7afe
commit 11606533c9
2 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,7 @@ h6 {
}
.heading {
a {
.anchor {
text-decoration: none;
font-weight: normal;
color: var(--content-secondary);
@ -47,7 +47,7 @@ h6 {
font-family: var(--font-mono);
}
&:hover a {
&:hover .anchor {
visibility: visible;
}
}
@ -576,4 +576,4 @@ blockquote {
blockquote p {
margin-left: 1rem;
margin-right: 1rem;
}
}

View file

@ -1,4 +1,4 @@
<h{{ .Level }} class="heading" id="{{ .Anchor }}">
{{ .Text }}
<a href="#{{ .Anchor }}">#</a>
<a class="anchor" href="#{{ .Anchor }}">#</a>
</h{{ .Level }}>