forked from mirrors/hugo-theme-terminal
improve: add fixes/suggestions from panr
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
{{ end }}
|
||||
|
||||
<div class="post-content">
|
||||
{{- with .Content -}}
|
||||
{{- with .Content -}}
|
||||
<div>
|
||||
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor"> ⌗</a> ${3}` | safeHTML }}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user