Update layouts/_default/single.html

Co-Authored-By: Radek Kozieł <radoslaw.koziel@gmail.com>
This commit is contained in:
Sophia Brandt 2020-01-23 20:56:58 +01:00 committed by GitHub
parent 2ab90a708e
commit e8fdb4e084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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