From 0a36eafd6446b59585ecaec4bf44ec0ee15c6b85 Mon Sep 17 00:00:00 2001 From: Giuseppe Pignataro Date: Tue, 20 Aug 2019 23:10:24 +0200 Subject: Added utterances comment system Added utterances comment system --- exampleSite/config.toml | 4 ++++ layouts/partials/comments.html | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b263269..b37d8d4 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -175,3 +175,7 @@ clientSecret = "" avatar = 'mm' placeholder = 'your comments ...' visitor = true + +[params.utterances] # https://utteranc.es/ + owner = "" # Your GitHub ID + repo = "" # The repo to store comments diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index d554938..fa0f32c 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -64,5 +64,17 @@ }); {{- end -}} + + {{- if .Site.Params.utterances.owner}} + + + {{- end }} + {{- end }} -- cgit v1.2.3