[feat] support giscus self-hosting
This commit is contained in:
parent
e81ff01ace
commit
f348f94b79
|
@ -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: # [在此输入分类名]
|
||||||
|
|
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue