From 972c50b47c39acd4c58b7ee2c1b85848f45194bc Mon Sep 17 00:00:00 2001 From: Janis Klaise Date: Sun, 6 Oct 2019 22:02:04 +0100 Subject: [PATCH 1/2] Utterances support --- README.md | 14 ++++++++++++++ layouts/_default/single.html | 10 ++++++++++ 2 files changed, 24 insertions(+) diff --git a/README.md b/README.md index 2ba25bde..30c6d5f2 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,20 @@ comments: If you *don't* have the section `[Params.staticman]` in `config.toml`, you *won't* need the section `reCaptcha` in `staticman.yml` +### Utterances support + +Add *Utterances* configuration section in `config.toml` or `config.yaml` + +Sample `config.toml` configuration + +``` +[Params.Utteranc] + repo = "user/repo" + issue_term = "pathname" + label = "comment" + theme = "github-light" +``` + ### Google Analytics To add Google Analytics, simply sign up to [Google Analytics](https://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `googleAnalytics` parameter in `config.toml`. diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0ab1bf58..d28c5e58 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -81,6 +81,16 @@

{{ i18n "seeAlso" }}

{{ partial "staticman-comments.html" . }} {{ end }} + {{ if .Site.Params.Utterances }} + + {{ end }} {{ end }} From 01b72f4fe351704cee10cf36a8c31d2eafa53a38 Mon Sep 17 00:00:00 2001 From: Janis Klaise Date: Sun, 6 Oct 2019 22:03:18 +0100 Subject: [PATCH 2/2] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 30c6d5f2..81cd5c96 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ Add *Utterances* configuration section in `config.toml` or `config.yaml` Sample `config.toml` configuration ``` -[Params.Utteranc] +[Params.Utterances] repo = "user/repo" issue_term = "pathname" label = "comment"