From 9de9488b04e0eded2929316ffb38dfcb45ec1f7f Mon Sep 17 00:00:00 2001 From: YDZ Date: Mon, 15 Feb 2021 11:49:32 +0800 Subject: [PATCH] Fix gitalk issue --- website/themes/book/layouts/partials/docs/gitalk.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/themes/book/layouts/partials/docs/gitalk.html b/website/themes/book/layouts/partials/docs/gitalk.html index 28927cfa..0bd80aa0 100644 --- a/website/themes/book/layouts/partials/docs/gitalk.html +++ b/website/themes/book/layouts/partials/docs/gitalk.html @@ -12,7 +12,8 @@ admin: ['{{ .Site.Params.Gitalk.owner }}'], id: md5(location.pathname), // Ensure uniqueness and length less than 50 distractionFreeMode: false, // Facebook-like distraction free mode - body: location.href // GitHub issue body. + body: location.href, // GitHub issue body. + proxy: '{{ .Site.Params.Gitalk.proxy }}' // Gitalke proxy }); (function() { if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {