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 }}