From 7b51bea912eeb0a1abf6feb0d81479dd202814f5 Mon Sep 17 00:00:00 2001 From: zhixuan <59254886+zhixuan666@users.noreply.github.com> Date: Thu, 5 Aug 2021 03:49:21 +0900 Subject: [PATCH] feat(comment): add `Twikoo` support (#286) * Create twikoo.html * Upgrade to Twikoo 1.4.3 and add `lang` param * Add twikoo section in config.yaml Co-authored-by: Jimmy Cai --- exampleSite/config.yaml | 8 +++- .../partials/comments/provider/twikoo.html | 42 +++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/comments/provider/twikoo.html diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index ac30c01..4046887 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -44,7 +44,7 @@ params: article: math: false toc: true - readingTime: true + readingTime: true license: enabled: true default: Licensed under CC BY-NC-SA 4.0 @@ -87,6 +87,12 @@ params: locale: admin: Admin + twikoo: + envId: + region: + path: + lang: + widgets: enabled: - search diff --git a/layouts/partials/comments/provider/twikoo.html b/layouts/partials/comments/provider/twikoo.html new file mode 100644 index 0000000..00016b4 --- /dev/null +++ b/layouts/partials/comments/provider/twikoo.html @@ -0,0 +1,42 @@ + +
+ + +{{- with .Site.Params.comments.twikoo -}} + +{{- end -}}