From 403871be5ef67e63c83f7662bdfb13447af5306f Mon Sep 17 00:00:00 2001 From: Shreyansh Khajanchi Date: Mon, 24 Jun 2019 04:45:51 +0530 Subject: [PATCH] Add utterance.es support (#127) A lightweight comments widget built on GitHub issues. --- exampleSite/config.toml | 5 +++++ layouts/partials/blog_single.html | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9715a05..29429f3 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -44,6 +44,11 @@ posts_navigation = true # githubRepo = "githubUsername/repositoryName/tree/master" small_banner_logo = false +[params.utteranc] +enable = true +repo = "mtn/cocoa-eh-hugo-theme" +issueTerm = "title" + [params.colors] identifier = "#527fc1f" identifier_dark = "#1a3152" diff --git a/layouts/partials/blog_single.html b/layouts/partials/blog_single.html index 865d8a0..a2ca07f 100644 --- a/layouts/partials/blog_single.html +++ b/layouts/partials/blog_single.html @@ -91,6 +91,19 @@ {{ end }} + + {{ if .Site.Params.utteranc.enable }} +
+ +
+ {{ end }} + {{ if .Site.Params.issoHost }}