add talkyard comments

This commit is contained in:
Ray Elliott 2020-09-12 19:01:40 +01:00
parent a76ed0c47c
commit 60d9f86493
1 changed files with 11 additions and 0 deletions

View File

@ -4,3 +4,14 @@
{{ define "content" }} {{ define "content" }}
{{ partial "page.html" . }} {{ partial "page.html" . }}
{{ end }} {{ end }}
{{ if .Site.Params.talkyardServerUrl }}
<section class="comments">
<script>talkyardServerUrl='{{ .Site.Params.talkyardServerUrl }}';</script>
<script async defer src="{{ .Site.Params.talkyardScriptUrl }}"></script>
<!-- You can specify a per page discussion id on the next line, if your URLs might change. -->
<div class="talkyard-comments" data-discussion-id="{{ .Params.discussionId }}" style="margin-top: 45px;">
<noscript>Please enable Javascript to view comments.</noscript>
</div>
</section>
{{ end }}