mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-27 07:25:53 -05:00
2b0619f684
Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
3 lines
179 B
HTML
3 lines
179 B
HTML
<!-- formats .Content headings by adding an anchor -->
|
|
{{ . | replaceRE "(<h[2-3] id=\"([^\"]+)\".+)(</h[2-9]+>)" "${1}<a class=\"anchor\" href=\"#${2}\">#</a>${3}" | safeHTML }}
|