Skip to content

Commit

Permalink
Merge pull request #78 from OleMussmann/fix-header-links
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfran authored Feb 2, 2025
2 parents 14b7bb7 + 1160653 commit 695447a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ h6 {
}

.heading {
a {
.anchor {
text-decoration: none;
font-weight: normal;
color: var(--content-secondary);
Expand All @@ -47,7 +47,7 @@ h6 {
font-family: var(--font-mono);
}

&:hover a {
&:hover .anchor {
visibility: visible;
}
}
Expand Down Expand Up @@ -576,4 +576,4 @@ blockquote {
blockquote p {
margin-left: 1rem;
margin-right: 1rem;
}
}
2 changes: 1 addition & 1 deletion layouts/_default/_markup/render-heading.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h{{ .Level }} class="heading" id="{{ .Anchor }}">
{{ .Text }}
<a href="#{{ .Anchor }}">#</a>
<a class="anchor" href="#{{ .Anchor }}">#</a>
</h{{ .Level }}>

0 comments on commit 695447a

Please sign in to comment.