2025-02-14
参照Kinnari’s Site,根据KinnariyaMamaTanha/KinnariyaMamaTanha.github.io: Kinnari’s Site for Blogs, Notes, And So On.,考虑建立自己的github主页。我需要主动出击!
250214创建仓库1JI0O/1ji0o.github.io: My site for blogs and so on!,考虑有时间可以部署个人主页。 考虑Material for MkDocs
完成了第一次尝试,感觉十分不熟悉如何push,我应该把mkdocs目录下创建的文件放到clone的文件夹里吗?我什么都不知道。
2025-02-15
先clone到某个目录,然后在那个目录里mkdocs new . 然后编辑完后mkdocs build,再然后mkdocs gh-deploy —force,需要注意的是,要“ensure that the publishing source branch for your GitHub Page is set to gh-pages ”
现在访问1ji0o.github.io就可以看到mkdocs的界面了。
参照Publishing your site - Material for MkDocs
我是只有gh-pages一个branch,每次改完内容需要手动mkdocs gh-deploy,如果是使用github action的话有所不同。
此外,需要安装git,但是它默认不连代理。连代理参见解决 Github port 443 : Timed out - 知乎
git config --global http.proxy http://127.0.0.1:7890 git config —global https.proxy http://127.0.0.1:7890
mkdocs material 超全配置 - wnc 的咖啡馆 我发现这些人基于mkdocs构建的博客都长得差不多,考虑借鉴一下。
我应该考虑拿hexo重构个人主页,因为这样方案可能比较丰富,此外页面也可以比较美观。认为这方面不应该太折腾,能快速拿出方案就很好了
2025-06-22
我正在考虑拿hexo重新搭建我的个人网站,也许能从中学到点什么
尝试安装hexo文档 | Hexo
npm install -g hexo-cli
发现问题:无法加载文件 D:\nodejs\npm.ps1,因为在此系统上禁止运行脚本
通过vscode 终端报错:无法加载文件 D:\nodejs\npm.ps1,因为在此系统上禁止运行脚本。 - Li_pk - 博客园和npm : 无法加载文件 D:…\nodejs\npm.ps1,因为在此系统上禁止运行脚本-CSDN博客
解决
Hexo 22点46分 已经初步搭建完成
参见在 GitHub Pages 上部署 Hexo | Hexo的一键部署
2025-06-23
尝试安装hexo-theme-matery/README_CN.md at develop · blinkfox/hexo-theme-matery
尝试hexo d发现报错:
remote: Resolving deltas: 100% (12/12), done.
remote: error: GH013: Repository rule violations found for refs/heads/gh-pages.
remote:
remote: - GITHUB PUSH PROTECTION
remote: —————————————————————————————————————————
remote: Resolve the following violations before pushing again
remote:
remote: - Push cannot contain secrets
remote:
remote:
remote: (?) Learn how to resolve a blocked push
remote: https://docs.github.com/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-from-the-command-line#resolving-a-blocked-push
remote:
remote:
remote: —— Tencent Cloud Secret ID ———————————————————————————
remote: locations:
remote: - commit: d1bbdfc8822725e81cb0f49455bc1104f1bedcca
remote: path: libs/twikoo/twikoo.all.min.js:2
remote:
remote: (?) To push, remove secret from commit(s) or follow this URL to allow the secret.
remote: https://github.com/1JI0O/1ji0o.github.io/security/secret-scanning/unblock-secret/2ytWOb5HmupNGHyKtZ9iCgljNIz
remote:
remote:
remote:
To https://github.com/1JI0O/1ji0o.github.io.git
! [remote rejected] HEAD -> gh-pages (push declined due to repository rule violations)
error: failed to push some refs to 'https://github.com/1JI0O/1ji0o.github.io.git'
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.<anonymous> (D:\hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (node:events:518:28)
at cp.emit (D:\hexo\node_modules\cross-spawn\lib\enoent.js:34:29)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)参照报错内容,访问了里面给出的链接,临时关闭代码审查,push成功
然后还是有问题,参见(56 封私信 / 81 条消息) Hexo本地显示没有问题 部署上去后就不能正常显示 怎么办? - 知乎
发现
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://1JI0O.github.io/1ji0o.github.io最开始设置有问题,我错误理解了“project”的含义,事实上这个是指项目名称,而不是这个词本身,此外大写的1JI0O也把我害惨了。
不对,这样设置还是有问题
设置为:url: https://1ji0o.github.io就好了
13点38分 安装了 中文链接转拼音(建议安装)
2025-08-26
创建完新界面后
hexo clean
hexo g
hexo s可以预览 然后
hexo deploy部署到github上面去
收到了 ???的qq:吃个友链
看了看,是他的Kilox,里面有hzc和那位医学部的女孩子
于是参照hexo-theme-matery/README_CN.md at develop · blinkfox/hexo-theme-matery,设置了友链
遇到问题:github page在deploy时卡死,卡了3min还没有结果,于是修改了一点东西,重新部署,就可以了。
2025-10-26
参见主页 - LY 的博客 我觉得他的主页赏心悦目,可以作为参考
Cyrus’ Blog - Think twice, code once. 我觉得这个主页也不错,有时间可以折腾一下
2025-12-07
- 直接用 GitHub Pages 的多分支机制部署静态页面 如果你希望 cv 页面完全独立于 Hexo 生成的页面,可以用以下方式:
创建 cv 文件夹或分支 在你的仓库创建一个 cv 文件夹,或者使用 gh-pages 的特殊目录管理(例如用另一个分支,或用 /cv/index.html)。
放入 jonbarron 风格页面代码 将 jonbarron 的简历页相关静态文件(HTML、CSS 等)拷贝到你的 cv 文件夹(或单独分支)。
访问页面 GitHub Pages 支持以 1ji0o.github.io/cv/ 这样的路径直接访问子页面。
可以这样子设置个人cv,类似于 ??? 学长那样,我认为可以考虑
- 只需把你的页面内容命名为
/cv/index.html并上传,无论你自己访问https://1ji0o.github.io/cv/还是别人访问这个链接,都能直接显示你希望展示的内容,根本不用麻烦地输入index.html。
官方说明:GitHub Pages官方文档:
When you access a directory in your site, GitHub Pages will serve the index.html file in that directory automatically.
2026-01-25
基于Hexo的matery主题搭建博客自定义修改篇2 | 夜法之书 这个有用,去掉首页渐变
matery主题之代码块优化 | zsc’s Blog 可惜没用
妈的,这个hexo和matery好像就是挺容易冲突的,那就算了妈的,不整这些了,以后主要是修改那个学术about页面
妈的,我觉得还是这个好看,这个还是和obsidian兼容的,那就更好了,妈的,我要切换成这个