From 66bd8a299798b53c78fa4b6b65c5c7256485a029 Mon Sep 17 00:00:00 2001 From: Cookiekira <42908926+Cookiekira@users.noreply.github.com> Date: Sat, 18 Sep 2021 16:03:08 +0800 Subject: [PATCH] feat(comments): add Gitalk support (#351) --- exampleSite/config.yaml | 7 +++++ .../partials/comments/provider/gitalk.html | 30 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 layouts/partials/comments/provider/gitalk.html diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 9c17e9d..8139fa4 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -111,6 +111,13 @@ params: reactionsEnabled: 1 emitMetadata: 0 + gitalk: + owner: + admin: + repo: + clientID: + clientSecret: + widgets: enabled: - search diff --git a/layouts/partials/comments/provider/gitalk.html b/layouts/partials/comments/provider/gitalk.html new file mode 100644 index 0000000..95ca133 --- /dev/null +++ b/layouts/partials/comments/provider/gitalk.html @@ -0,0 +1,30 @@ +{{- with .Site.Params.comments.gitalk -}} +
+ + + + +{{ end }}