diff options
Diffstat (limited to 'layouts/partials/comments.html')
-rw-r--r-- | layouts/partials/comments.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 1bca8a0..a39058d 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -30,4 +30,13 @@ var disq = new iDisqus('disqus-comment', { <!-- disqus 评论框 end --> <div id="disqus-comment"></div> {{ template "_internal/disqus.html" . }} +{{ else if .Site.Params.twikoo_env_id }} +<div id="twikoo-tcomment"></div> +<script src="https://cdn.jsdelivr.net/npm/twikoo@1.4.14/dist/twikoo.all.min.js"></script> +<script> + twikoo.init({ + envId: '{{ .Site.Params.twikoo_env_id }}', + el: '#twikoo-tcomment', + }) +</script> {{ end }} |