From 84bd48493c20877058b01cabf7b49ececbd0ec7d Mon Sep 17 00:00:00 2001 From: amazingrise <8315221+AmazingRise@users.noreply.github.com> Date: Sat, 14 Aug 2021 13:56:06 +0800 Subject: Add utterances support. --- exampleSite/config.toml | 6 ++++++ layouts/partials/comment.html | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7291d44..d1fd095 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -37,6 +37,12 @@ description = "My HomePage Description" # will set 'og:description' tag = "tags" category = "categories" +[params.utterances] +repo="your repo" +term="[ENTER TERM HERE]" +label="your label" +theme="github-light" + [[menu.main]] url = "/categories" name = "Categories" diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html index 4d19c87..35b6360 100644 --- a/layouts/partials/comment.html +++ b/layouts/partials/comment.html @@ -46,4 +46,15 @@ twikoo.init({ serverURL: {{.Site.Params.walineServer}} , }); +{{ end }} + +{{ if .Site.Params.enableUtterances }} + {{ end }} \ No newline at end of file -- cgit v1.2.3