From 3ecdf057af73930bf0a92e4e97c48c42337e43b5 Mon Sep 17 00:00:00 2001 From: Mivinci <1366723936@qq.com> Date: Fri, 12 Nov 2021 15:58:35 +0800 Subject: [PATCH] config for utterance --- exampleSite/config.toml | 5 ++++- layouts/partials/utterances.html | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 02686c3..1d8c76d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -45,10 +45,13 @@ shortname = "hugo-minima" # Utterance configuration # Full doc's at https://utteranc.es +# **notice**: if you're going to use utterances, you must change the +# `repo` to your own repo address that stores comments on your site [params.utterances] -repo = "mivinci/minima-comments" +repo = "mivinci/hugo-theme-minima" issueTerm = "pathname" +# **deprecated** # OvO is a comment plugin written by the author of Minima. # It is enabled when params.comment is set "ovo". You can # find its documentation on https://github.com/ovojs/ovo. diff --git a/layouts/partials/utterances.html b/layouts/partials/utterances.html index fbbebb8..d1093e2 100644 --- a/layouts/partials/utterances.html +++ b/layouts/partials/utterances.html @@ -11,6 +11,7 @@ script.setAttribute('repo', repo) script.setAttribute('issue-term', issueTerm) script.setAttribute('theme', theme) + script.setAttribute('label', 'comment') document.querySelector('main').appendChild(script)