yann.verry.org/themes/PaperMod/layouts/partials/anchored_headings.html
Yann Verry 138071bfb8
All checks were successful
continuous-integration/drone/push Build is passing
add recursive
2022-10-25 22:21:18 +02:00

3 lines
212 B
HTML

{{- /* formats .Content headings by adding an anchor */ -}}
{{ . | replaceRE "(<h[1-6] id=\"([^\"]+)\".+)(</h[1-6]+>)" "${1}<a hidden class=\"anchor\" aria-hidden=\"true\" href=\"#${2}\">#</a>${3}" | safeHTML }}