summaryrefslogtreecommitdiffstats
path: root/layouts/partials/comment-utterances.html
diff options
context:
space:
mode:
authoramzrk22020-04-23 19:42:06 +0800
committeramzrk22020-04-23 19:42:06 +0800
commit0ed932121cd278fa1678e518728e7bb728bd1a9a (patch)
treef9999488f5fc0db69e3451320148cac4e9646083 /layouts/partials/comment-utterances.html
parent39d85cc63387f940dcfd6cef1a6d43d2cc4ebdf1 (diff)
downloadhugo-theme-fuji-0ed932121cd278fa1678e518728e7bb728bd1a9a.tar.gz
hugo-theme-fuji-0ed932121cd278fa1678e518728e7bb728bd1a9a.tar.bz2
hugo-theme-fuji-0ed932121cd278fa1678e518728e7bb728bd1a9a.zip
Adjust comments settings
Diffstat (limited to 'layouts/partials/comment-utterances.html')
-rw-r--r--layouts/partials/comment-utterances.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/comment-utterances.html b/layouts/partials/comment-utterances.html
index b41aef4..b3edfbd 100644
--- a/layouts/partials/comment-utterances.html
+++ b/layouts/partials/comment-utterances.html
@@ -1,7 +1,9 @@
+{{ with .Site.Params.utterancesRepo }}
<div id="post-loading">
<i class="fas fa-circle-notch fa-spin"></i>
<p>{{ i18n "postCommentLoading" }}</p>
</div>
<div id="post-comment">
- <script src="{{ .Site.Params.cdnUtterancesJS }}" repo="{{ .Site.Params.utterancesRepo }}" issue-term="{{ .Site.Params.utterancesIssueTerm }}" theme="{{ .Site.Params.utterancesTheme }}" crossorigin="anonymous" async></script>
-</div> \ No newline at end of file
+ <script src="https://utteranc.es/client.js" repo="{{ . }}" issue-term="{{ $.Site.Params.utterancesIssueTerm }}" theme="{{ $.Site.Params.utterancesTheme }}" crossorigin="anonymous" async></script>
+</div>
+{{ end }} \ No newline at end of file