From ceba71f0d5c0dd35b5a1effdc0dcc2ee8634917f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=AB=E6=AC=BA=E8=B4=9F=E7=9A=84=E5=A4=A7=E7=99=BD?= Date: Sat, 25 May 2019 22:31:59 +0800 Subject: [PATCH] feat(comment): add utterances support (#156) Closes #117 --- exampleSite/config.toml | 4 ++++ layouts/partials/comments.html | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index c80e809..ae99823 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -136,6 +136,10 @@ copyright = "" # default: author.name ↓ # 默认为下面配 clientId = "" # Your client ID clientSecret = "" # Your client secret + [params.utterances] # https://utteranc.es/ + owner = "" # Your GitHub ID + repo = "" # The repo to store comments + [params.gitalk] # Gitalk is a comment system based on GitHub issues. see https://github.com/gitalk/gitalk owner = "" # Your GitHub ID repo = "" # The repo to store comments 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 @@ {{- end }} + + {{- if .Site.Params.utterances.owner}} + + + {{- end }} + {{- end }}