diff options
author | 被欺负的大白 <bwangel.me@gmail.com> | 2019-05-25 22:31:59 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2019-05-25 22:31:59 +0800 |
commit | ceba71f0d5c0dd35b5a1effdc0dcc2ee8634917f (patch) | |
tree | b81436c6239ed14affe6b7a438d84c5be15ad3d5 /layouts/partials/comments.html | |
parent | d8a7dab116ee3b63155454bacda87538bbd6351d (diff) |
feat(comment): add utterances support (#156)
Closes #117
Diffstat (limited to 'layouts/partials/comments.html')
-rw-r--r-- | layouts/partials/comments.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index af5e0c7..48ff8c9 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -123,4 +123,16 @@ </script> {{- end }} + <!-- utterances --> + {{- if .Site.Params.utterances.owner}} + <script src="https://utteranc.es/client.js" + repo="{{ .Site.Params.utterances.owner }}/{{ .Site.Params.utterances.repo }}" + issue-term="pathname" + theme="github-light" + crossorigin="anonymous" + async> + </script> + <noscript>Please enable JavaScript to view the <a href="https://github.com/utterance">comments powered by utterances.</a></noscript> + {{- end }} + {{- end }} |