From f348f94b79b02512d38384b723c85991f459c32b Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 2 Jan 2024 12:55:12 +0800 Subject: [PATCH] [feat] support giscus self-hosting --- _config.yml | 1 + layout/_partial/plugins/comments/giscus/script.ejs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 921f140..3516866 100755 --- a/_config.yml +++ b/_config.yml @@ -107,6 +107,7 @@ comments: # giscus # https://giscus.app/zh-CN giscus: + src: https://giscus.app/client.js data-repo: xxx/xxx # [在此输入仓库] data-repo-id: # [在此输入仓库 ID] data-category: # [在此输入分类名] diff --git a/layout/_partial/plugins/comments/giscus/script.ejs b/layout/_partial/plugins/comments/giscus/script.ejs index 9acc12a..46c3175 100644 --- a/layout/_partial/plugins/comments/giscus/script.ejs +++ b/layout/_partial/plugins/comments/giscus/script.ejs @@ -9,7 +9,6 @@ console.error(error); } var script = document.createElement('script'); - script.src = 'https://giscus.app/client.js'; script.async = true; for (let key of Object.keys(el.attributes)) { let attr = el.attributes[key];