use site parameters for talkyard check

This commit is contained in:
Ray Elliott 2020-09-12 21:50:10 +01:00
parent 60d9f86493
commit 618748f755
1 changed files with 12 additions and 0 deletions

View File

@ -43,5 +43,17 @@
</article> </article>
{{ partial "posts/math.html" . }} {{ partial "posts/math.html" . }}
</section>
{{ if .Site.Params.talkyardServerUrl }}
<section class="comment-section">
<h2>Comments</h2>
<script>talkyardServerUrl='{{ .Site.Params.talkyardServerUrl }}';</script>
<script async defer src="{{ .Site.Params.talkyardScriptUrl }}"></script>
<div class="talkyard-comments" data-discussion-id="{{ .Params.discussionId }}" style="margin-top: 45px;">
<noscript>Please enable Javascript to view comments.</noscript>
<p style="margin-top: 25px; opacity: 0.9; font-size: 96%">Comments powered by
<a href="https://www.talkyard.io">Talkyard</a>.</p>
</div>
</section> </section>
{{ end }} {{ end }}
{{ end }}