mirror of
https://github.com/ivanch/blog.ivanch.me.git
synced 2026-02-14 10:18:27 +00:00
re-init
This commit is contained in:
2
themes/PaperMod/layouts/partials/anchored_headings.html
Normal file
2
themes/PaperMod/layouts/partials/anchored_headings.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{{- /* 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 }}
|
||||
Reference in New Issue
Block a user