1
0
mirror of https://github.com/thomasjsn/hugo-theme-hello-friend.git synced 2025-02-25 07:01:18 +01:00
KenHV d32455142d Add anchors to headings
Signed-off-by: KenHV <yo@kenharris.xyz>
2022-01-24 20:02:45 +05:30

5 lines
166 B
HTML

<h{{ .Level }} id="{{ .Anchor | safeURL }}">
{{ .Text | safeHTML }}
<a href="#{{ .Anchor | safeURL }}" class="h-anchor" aria-hidden="true">#</a>
</h{{ .Level }}>