A little fix for anchor appearance

This commit is contained in:
panr
2020-01-24 08:21:30 +01:00
parent 49c8679b6c
commit 7c5c62e630
7 changed files with 261 additions and 15 deletions

View File

@ -30,9 +30,9 @@
<div class="post-content">
{{- with .Content -}}
<div>
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor"> &#8983;</a> ${3}` | safeHTML }}
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor">&#8983;</a> ${3}` | safeHTML }}
</div>
{{- end -}}
{{- end -}}
</div>
{{ if or .NextInSection .PrevInSection }}
<div class="pagination">