From 0b123a6b544128e7d8a5b5a8cae02325d047d43b Mon Sep 17 00:00:00 2001 From: HighDoping Date: Tue, 29 Oct 2024 11:08:58 +0800 Subject: [PATCH] Add support for comentario. --- config.yaml | 12 ++++++++++++ exampleSite/hugo.yaml | 13 +++++++++++++ layouts/partials/comments/provider/comentario.html | 13 +++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 layouts/partials/comments/provider/comentario.html diff --git a/config.yaml b/config.yaml index b1a0bff..c806f55 100644 --- a/config.yaml +++ b/config.yaml @@ -117,6 +117,18 @@ params: host: id: + # Comentario client configuration see: https://docs.comentario.app/en/configuration/embedding/comments-tag/ + comentario: + url: + autoInit: + autoNonInteractiveSso: + cssOverride: + lang: + liveUpdate: + maxLevel: + noFonts: + theme: + widgets: homepage: [] page: [] diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index 7cda528..2b435aa 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -166,6 +166,19 @@ params: cusdis: host: id: + + # Comentario client configuration see: https://docs.comentario.app/en/configuration/embedding/comments-tag/ + comentario: + url: + autoInit: + autoNonInteractiveSso: + cssOverride: + lang: + liveUpdate: + maxLevel: + noFonts: + theme: + widgets: homepage: - type: search diff --git a/layouts/partials/comments/provider/comentario.html b/layouts/partials/comments/provider/comentario.html new file mode 100644 index 0000000..294de6d --- /dev/null +++ b/layouts/partials/comments/provider/comentario.html @@ -0,0 +1,13 @@ + + + \ No newline at end of file