Files
sharedinbox/website/themes/PaperMod/layouts/_partials/anchored_headings.html
T
Thomas SharedInbox 58f1a4da42 feat(website): vendor PaperMod theme, remove git submodule (#125)
Replace the git submodule with directly tracked files so that
`git commit .` no longer fails with 'does not have a commit
checked out'. Removed .github/ from the vendored copy since
upstream CI workflows are not needed here.
2026-05-21 10:21:09 +02:00

7 lines
224 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
}}