mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-26 06:55:52 -05:00
cf4fd27e3d
- add corresponding css - gen anchored headings for h1-h6 - link with single.html
3 lines
207 B
HTML
3 lines
207 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 }}
|