this repo has no description

add header anchors

0xda157 00a80a1a 7650e396

+16 -2
+2 -2
config.toml
··· 15 [markdown] 16 highlight_code = true 17 highlight_theme = "material-dark" 18 - 19 - # smart_punctuation = true 20 bottom_footnotes = true 21 22 [search] 23 index_format = "elasticlunr_json"
··· 15 [markdown] 16 highlight_code = true 17 highlight_theme = "material-dark" 18 + smart_punctuation = false 19 bottom_footnotes = true 20 + insert_anchor_links = "left" 21 22 [search] 23 index_format = "elasticlunr_json"
+9
sass/style.scss
··· 119 color: var(--primary); 120 } 121 122 .dollcode { 123 transition: color 2s; 124 color: var(--accent);
··· 119 color: var(--primary); 120 } 121 122 + .zola-anchor { 123 + text-decoration: none; 124 + transition: color 0.5s ease; 125 + color: var(--secondary); 126 + &:hover { 127 + color: var(--accent); 128 + } 129 + } 130 + 131 .dollcode { 132 transition: color 2s; 133 color: var(--accent);
+5
templates/anchor-link.html
···
··· 1 + <a 2 + class="zola-anchor" 3 + href="#{{ id }}" 4 + aria-label="Anchor link for: {{ id }}" 5 + >#</a>