replaced anchor with hash

This commit is contained in:
Massimo Scagliola 2024-04-10 09:26:32 +02:00
parent 839831b17a
commit b0ebf8d34c
2 changed files with 7 additions and 5 deletions

View File

@ -119,11 +119,13 @@ pre {
.markdown-image img {
max-width: 100%;
}
.anchor {
font-size: 1rem;
visibility: hidden;
color:silver;
.anchor {
opacity: 0;
/* color:silver; */
transition: 200ms;
}
.anchor:hover {opacity: 1}
h1:hover a,
h2:hover a,
h3:hover a {

View File

@ -1 +1 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}" class="anchor">🔗</a></h{{ .Level }}>
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}" class="anchor">#</a></h{{ .Level }}>