首先fork此项目https://github.com/superleeyom/superleeyom.github.io,我fork后,得到的项目地址:https://github.com/briteming/sgi,
在这个得到的项目仓库里, 删除没用的东西:README.md,
CNAME,
.gitignore
和docs目录里的 CNAME。
访问https://github.com/briteming/sgi/tree/master/docs,修改里面的index.html:
https://github.com/briteming/sgi/blob/master/docs/index.html,修改为:
...
<script>
window.config = {
organization: false,
order: 'CREATED_AT',
title: "brite's Blog",
user: 'briteming',
repository: 'sgi',
authors: 'brite',
ignores: '',
hash: 'ghp_XKcX!&t&&goa(oVU(eXSlGX&k^wlXS@LaXTFYnJpdGVtaW5nLmdpdGh1Yi5pbw==',
perpage: 5,
}
</script>
...
这里的 hash的值要改为你的hash的值。其中关于 hash 的获取,参考「获取 hash」:
在https://github.com/settings/tokens/new获取你的token。
在chrome 浏览器里访问网站https://blog.leeyom.top/,点击右上角的竖向的3小点- >更多工具->
开发者工具。从而打开 开发者工具 界面。在Github https://github.com/LoeiFy/Mirror的下一行的'>'的后面输入:
window.encrypt('我的github用户名briteming的access token的值', 'briteming.github.io')然后按enter键,在下一行会显示一串字符,得到的字符就是 hash 串。把这串字符记录下来。访问 https://github.com/briteming/sgi/settings/pages,Source的值选择:Deploy from a branch:
将 page 的 source 指向到master分支的docs目录。然后点击save。
若你没有自定义域名,Custom domain可以不用设置。然后等个3-5分钟,访问地址:https://briteming.github.io/sgi,即可成功打开你的博客网站。
参考资料
演示网站:https://briteming.github.io/sgi
项目地址:https://github.com/superleeyom/superleeyom.github.io
(https://github.com/briteming/sgi)
相关帖子:https://briteming.blogspot.com/2025/10/github-issueblog-by-superleeyom.html
看完本文后,可知完全不必跟这个项目 https://github.com/superleeyom/blog发生关系,而生成的网站https://briteming.github.io/sgi跟此文https://briteming.blogspot.com/2025/10/github-issueblog-by-superleeyom.html 里所说的演示网站https://yu826717.github.io的效果是一模一样的。

No comments:
Post a Comment