add commento support

This commit is contained in:
Amolith 2023-01-26 14:29:07 -05:00
parent 5b11ce1baf
commit beee9f7946
Signed by: Amolith
GPG Key ID: 8AE30347CE28D101
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@
<div class="content">
{{ .Content | replaceRE "(<h[1-6] id=\"(.+)\".*>)(.*)(</h[1-6]>)" `${1}${3} <a class="anchor-tag" ariaLabel="Anchor" href="#${2}"></a>${4}` | safeHTML }}
</div>
<script defer src="https://commento.secluded.site/js/commento.js"></script>
<div id="commento"></div>
</article>
</div>
{{ end }}