diff --git a/README.md b/README.md index 6faa9fa..7ef8bf4 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,10 @@ __`Hyde-hyde`__ essentially inherits most of Hyde's [options](https://github.com * `GraphCommentId = "your-graphcomment-id"`: to use [GraphComment](https://graphcomment.com) instead of the built-in [Disqus](https://disqus.com). This option should be used exclusively with `disqusShortname = "disqus-shortname"`. +* `UtterancesRepo = "your-repo-name"`: to use [Utterances](https://utteranc.es/) instead of the built-in [Disqus](https://disqus.com). This option should be used exclusively with `disqusShortname = "disqus-shortname"`. + * `UtterancesIssueTerm = "pathname"` Method for Utterances to match issue's to posts (pathname, url, title, og:title) + * `UtterancesTheme = "github-light"` Theme for Utterances (github-light, github-dark) + * `[params.social]`: in this section, you can set many social identities such as Twitter, Facebook, Github, Bitbucket, Gitlab, Instagram, LinkedIn, StackOverflow, Medium, Xing, Keybase. ```toml diff --git a/exampleSite/config.toml b/exampleSite/config.toml index eda1a79..d0412d2 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -23,8 +23,11 @@ theme = "hyde-hyde" dateformat = "Jan 2, 2006" highlightjs = true highlightjsstyle = "github" - # please choose either GraphComment or Disqus + # please choose either GraphComment or Disqus or Utterances #GraphCommentId = "..." + #UtterancesRepo = "..." # https://utteranc.es/ + #UtterancesIssueTerm = "..." # pathname, url, title, og:title + #UtterancesTheme = "..." # github-light or github-dark # Table of contents #toc = none, "hugo", or "tocbot" diff --git a/layouts/partials/page-single/comment/utterances.html b/layouts/partials/page-single/comment/utterances.html new file mode 100644 index 0000000..008998e --- /dev/null +++ b/layouts/partials/page-single/comment/utterances.html @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/layouts/partials/page-single/post-comment.html b/layouts/partials/page-single/post-comment.html index 4c942af..a9d2ab7 100644 --- a/layouts/partials/page-single/post-comment.html +++ b/layouts/partials/page-single/post-comment.html @@ -3,5 +3,7 @@ {{ partial "page-single/comment/disqus.html" . }} {{ else if .Site.Params.GraphCommentId }} {{ partial "page-single/comment/graphcomment.html" . }} + {{ else if .Site.Params.UtterancesRepo }} + {{ partial "page-single/comment/utterances.html" . }} {{ end }} {{ end }}