cedaei.com/themes/codex/layouts/partials/anchored-headings.html

3 lines
179 B
HTML
Raw Normal View History

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