summaryrefslogtreecommitdiffstats
path: root/layouts/partials/comment-utterances.html
diff options
context:
space:
mode:
authoramzrk22020-05-27 22:53:13 +0800
committeramzrk22020-05-27 22:53:13 +0800
commitdfb6e1f80754c1c8f2d4d332c5292319f008a67b (patch)
treefd8c0cf13e03613b6a39c662b6a0ced87fb69157 /layouts/partials/comment-utterances.html
parentaa5290aeef9df1c583fdf30290351968df9215dc (diff)
downloadhugo-theme-fuji-dfb6e1f80754c1c8f2d4d332c5292319f008a67b.tar.gz
hugo-theme-fuji-dfb6e1f80754c1c8f2d4d332c5292319f008a67b.tar.bz2
hugo-theme-fuji-dfb6e1f80754c1c8f2d4d332c5292319f008a67b.zip
v2 original port
Diffstat (limited to 'layouts/partials/comment-utterances.html')
-rw-r--r--layouts/partials/comment-utterances.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/comment-utterances.html b/layouts/partials/comment-utterances.html
index 3e56201..43c06bf 100644
--- a/layouts/partials/comment-utterances.html
+++ b/layouts/partials/comment-utterances.html
@@ -4,6 +4,8 @@
<p>{{ i18n "postCommentLoading" }}</p>
</div>
<div class="post-comment">
- <script src="https://utteranc.es/client.js" repo="{{ . }}" issue-term="{{ $.Site.Params.utterancesIssueTerm }}" theme="{{ $.Site.Params.utterancesTheme }}" crossorigin="anonymous" async></script>
+ <script src="https://utteranc.es/client.js" repo="{{ . }}" issue-term="{{ $.Site.Params.utterancesIssueTerm }}"
+ theme="{{ if eq $.Site.Params.toggleMode "dark" }}photon-dark{{ else }}github-light{{ end }}"
+ crossorigin="anonymous" async></script>
</div>
{{ end }} \ No newline at end of file