add isso comment to posts

This commit is contained in:
Jan Fader 2021-12-22 17:38:58 +01:00
parent 0b15d3bc48
commit ce0091ed5e
No known key found for this signature in database
GPG Key ID: 1A6BDEFB0E27FA44

View File

@ -33,4 +33,25 @@
{{ partial "utterances.html" . }} {{ partial "utterances.html" . }}
{{ end }} {{ end }}
{{ if .Site.Params.isso.enabled }}
<article class="post">
<script
data-isso="{{ .Site.Params.isso.data }}"
data-isso-id="{{ .Site.Params.isso.id}}"
data-isso-css="{{ .Site.Params.isso.css }}"
data-isso-lang="{{ .Site.Params.isso.lang }}"
data-isso-reply-to-self="{{ .Site.Params.isso.replyToSelf }}"
data-isso-require-author="{{ .Site.Params.isso.requireAuthor }}"
data-isso-require-email="{{ .Site.Params.isso.requireEmail }}"
data-isso-avatar="{{ .Site.Params.isso.avatar }}"
data-isso-avatar-bg="{{ .Site.Params.isso.avatarBg }}"
src="{{ .Site.Params.isso.jsLocation }}">
</script>
<noscript>Please enable JavaScript to view the comments powered by <a href="https://posativ.org/isso/">Isso</a>.</noscript>
<div>
<section id="isso-thread"></section>
</div>
</article>
{{ end }}
{{ end }} {{ end }}