From 0558108e30bbe23da981fbdb237d2a0619c53bd2 Mon Sep 17 00:00:00 2001 From: DashJay <45532257+dashjay@users.noreply.github.com> Date: Sat, 7 Sep 2024 23:18:03 +0800 Subject: [PATCH] feat(comments): add support to Gitalk `proxy` parameter (#1012) Co-authored-by: Jimmy Cai --- exampleSite/hugo.yaml | 1 + layouts/partials/comments/provider/gitalk.html | 1 + 2 files changed, 2 insertions(+) diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index a1e3829..9e710b2 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -156,6 +156,7 @@ params: repo: clientID: clientSecret: + proxy: cusdis: host: diff --git a/layouts/partials/comments/provider/gitalk.html b/layouts/partials/comments/provider/gitalk.html index 95ca133..54bfcba 100644 --- a/layouts/partials/comments/provider/gitalk.html +++ b/layouts/partials/comments/provider/gitalk.html @@ -15,6 +15,7 @@ admin: ["{{- .admin -}}"], distractionFreeMode: false, // Facebook-like distraction free mode id: md5(location.pathname), // Max Location.pathname Legth:75 https://github.com/gitalk/gitalk/issues/102 + proxy: {{- .proxy -}}, }); (function () { if (