From 5e57b5ad29a629ab9d3012cf7030344a8f0b15b7 Mon Sep 17 00:00:00 2001 From: HighDoping Date: Wed, 18 Feb 2026 02:09:18 +0800 Subject: [PATCH] feat(comment): add support for Comentario (#1088) * Add support for comentario. * feat: add Comentario client configuration options in TOML * fix: format theme attribute in comentario comments component --------- Co-authored-by: Jimmy Cai --- config/_default/params.toml | 14 +++++++++++++- .../_partials/comments/provider/comentario.html | 13 +++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 layouts/_partials/comments/provider/comentario.html diff --git a/config/_default/params.toml b/config/_default/params.toml index 56ccc99..9427794 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -161,4 +161,16 @@ SortBy = "default" [comments.cusdis] host = "https://cusdis.com" - id = "" \ No newline at end of file + id = "" + + # Comentario client configuration + [comments.comentario] + url = "" + autoInit = false + autoNonInteractiveSso = false + cssOverride = "" + lang = "" + liveUpdate = false + maxLevel = 0 + noFonts = false + theme = "" \ No newline at end of file diff --git a/layouts/_partials/comments/provider/comentario.html b/layouts/_partials/comments/provider/comentario.html new file mode 100644 index 0000000..a78323d --- /dev/null +++ b/layouts/_partials/comments/provider/comentario.html @@ -0,0 +1,13 @@ + + + \ No newline at end of file