This commit is contained in:
parent
2b840e017b
commit
138071bfb8
106 changed files with 4673 additions and 0 deletions
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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue