From b7be3ba6726eab551c856aaf7589f7b81a4021c7 Mon Sep 17 00:00:00 2001 From: NaNkeen Date: Wed, 29 May 2019 12:11:59 +0800 Subject: [PATCH 1/3] Implemented Commento embedding --- .../page-single/comment/commento.html | 25 +++++++++++++++++++ .../partials/page-single/post-comment.html | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 layouts/partials/page-single/comment/commento.html diff --git a/layouts/partials/page-single/comment/commento.html b/layouts/partials/page-single/comment/commento.html new file mode 100644 index 0000000..3861012 --- /dev/null +++ b/layouts/partials/page-single/comment/commento.html @@ -0,0 +1,25 @@ +
+ + + diff --git a/layouts/partials/page-single/post-comment.html b/layouts/partials/page-single/post-comment.html index a9d2ab7..668a0e1 100644 --- a/layouts/partials/page-single/post-comment.html +++ b/layouts/partials/page-single/post-comment.html @@ -5,5 +5,7 @@ {{ partial "page-single/comment/graphcomment.html" . }} {{ else if .Site.Params.UtterancesRepo }} {{ partial "page-single/comment/utterances.html" . }} + {{ else if .Site.Params.Commento }} + {{ partial "page-single/comment/commento.html" . }} {{ end }} {{ end }} From 3a75e58af036fdc04f1e2ec6c1ed9a7d4ba8cd8d Mon Sep 17 00:00:00 2001 From: NaNkeen Date: Wed, 29 May 2019 12:26:00 +0800 Subject: [PATCH 2/3] Added documentation about Commento in README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index b999e0a..dad2d2d 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,9 @@ __`Hyde-hyde`__ essentially inherits most of Hyde's [options](https://github.com * `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) +* `Commento = true`: to use [Commento](https://commento.io/) instead of the built-in [Disqus](https://disqus.com). This option should be used exclusively with `disqusShortname = "disqus-shortname"`. + * `CommentoHost = "your-commento-instance"` [Self-hosted Commento](https://docs.commento.io/installation/self-hosting/) instance. This is not required if you're a [Commento.io](https://commento.io) user. + * `[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 From 1e04705f7f0a4a0e8d8bda2cdba5d832a8371345 Mon Sep 17 00:00:00 2001 From: NaNkeen Date: Wed, 29 May 2019 12:29:12 +0800 Subject: [PATCH 3/3] Changed noscript message to the one from Commento's docs --- layouts/partials/page-single/comment/commento.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/page-single/comment/commento.html b/layouts/partials/page-single/comment/commento.html index 3861012..d70baad 100644 --- a/layouts/partials/page-single/comment/commento.html +++ b/layouts/partials/page-single/comment/commento.html @@ -21,5 +21,5 @@