Debian Codegraph @

internal/website/layouts/partials/header-link.html

raw
1 {{- /* https://zwbetz.com/create-header-links-hugo-vs-javascript/ */ -}}
2 {{ . | replaceRE "(<h[2-9] id=\"([^\"]+)\">)(.+)(</h[2-9]+>)" `${1} ${3}<a class="anchor" href="#${2}" aria-label="Link to Section">🔗</a>${4}` | safeHTML -}}