[feat] support giscus self-hosting

This commit is contained in:
xaoxuu 2024-01-02 12:55:12 +08:00
parent e81ff01ace
commit f348f94b79
2 changed files with 1 additions and 1 deletions

View File

@ -107,6 +107,7 @@ comments:
# giscus # giscus
# https://giscus.app/zh-CN # https://giscus.app/zh-CN
giscus: giscus:
src: https://giscus.app/client.js
data-repo: xxx/xxx # [在此输入仓库] data-repo: xxx/xxx # [在此输入仓库]
data-repo-id: # [在此输入仓库 ID] data-repo-id: # [在此输入仓库 ID]
data-category: # [在此输入分类名] data-category: # [在此输入分类名]

View File

@ -9,7 +9,6 @@
console.error(error); console.error(error);
} }
var script = document.createElement('script'); var script = document.createElement('script');
script.src = 'https://giscus.app/client.js';
script.async = true; script.async = true;
for (let key of Object.keys(el.attributes)) { for (let key of Object.keys(el.attributes)) {
let attr = el.attributes[key]; let attr = el.attributes[key];