{"id":15959069,"url":"https://github.com/xinetzone/docs","last_synced_at":"2026-02-10T20:07:40.381Z","repository":{"id":130621340,"uuid":"313884442","full_name":"xinetzone/docs","owner":"xinetzone","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-09T00:52:34.000Z","size":7883,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T05:46:42.347Z","etag":null,"topics":["ai","blog","hexo","katex"],"latest_commit_sha":null,"homepage":"https://xinetzone.github.io/dao","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xinetzone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-18T09:29:18.000Z","updated_at":"2021-02-09T00:52:38.000Z","dependencies_parsed_at":"2023-03-17T18:15:16.873Z","dependency_job_id":null,"html_url":"https://github.com/xinetzone/docs","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.04166666666666663,"last_synced_commit":"08c0aedbc4889540469546ae2da377cff117e832"},"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/xinetzone/docs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinetzone%2Fdocs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinetzone%2Fdocs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinetzone%2Fdocs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinetzone%2Fdocs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xinetzone","download_url":"https://codeload.github.com/xinetzone/docs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinetzone%2Fdocs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29314704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T17:48:59.043Z","status":"ssl_error","status_checked_at":"2026-02-10T17:45:37.240Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","blog","hexo","katex"],"created_at":"2024-10-07T14:22:08.171Z","updated_at":"2026-02-10T20:07:40.365Z","avatar_url":"https://github.com/xinetzone.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# dao\n\n刘新伟的博客\n\n[![GitHub issues](https://img.shields.io/github/issues/xinetzone/xinetzone.github.io)](https://github.com/xinetzone/xinetzone.github.io/issues) [![GitHub forks](https://img.shields.io/github/forks/xinetzone/xinetzone.github.io)](https://github.com/xinetzone/xinetzone.github.io/network) [![GitHub stars](https://img.shields.io/github/stars/xinetzone/xinetzone.github.io)](https://github.com/xinetzone/xinetzone.github.io/stargazers) [![GitHub license](https://img.shields.io/github/license/xinetzone/xinetzone.github.io)](https://github.com/xinetzone/xinetzone.github.io/blob/master/LICENSE) [![HitCount](http://hits.dwyl.io/xinetzone/xinetzone.github.io.svg)](http://hits.dwyl.io/xinetzone/xinetzone.github.io) ![repo size](https://img.shields.io/github/repo-size/xinetzone/xinetzone.github.io.svg) [![contributors](https://img.shields.io/github/contributors/xinetzone/xinetzone.github.io.svg)](https://github.com/xinetzone/xinetzone.github.io/graphs/contributors) [![watcher](https://img.shields.io/github/watchers/xinetzone/xinetzone.github.io.svg)](https://github.com/xinetzone/xinetzone.github.io/watchers) [![GitHub version](https://badge.fury.io/gh/xinetzone%2Fxinetzone.github.io.svg)](https://badge.fury.io/gh/xinetzone%2Fxinetzone.github.io)\n\n本项目基于 [blinkfox/hexo-theme-matery](https://github.com/blinkfox/hexo-theme-matery) 修改了一个 matery 主题网站的搭建的模板。由于 MathJax 加载速度慢，不能很好的支持公式对齐，所以将其替换为 Katex。\n\n## 如何使用\n\n1. `star` 本项目之后，可以直接`fork`一份源码到您的仓库（需要将 `dao` 改成您自己的`账户名称.github.io`），然后  `clone` 到本地磁盘\n2. 安装 [Git](https://git-scm.com/downloads)，[node.js](https://nodejs.org/en/)，为了支持 Katex 需要安装 [Pandoc](https://pandoc.org/installing.html)\n3. 使用命令 `npm i -g hexo-cli` 安装 Hexo\n4. 在本地博客仓库进入到 `docs/` 目录，运行 `npm install` 命令安装依赖包\n5. 仍然在 `docs/` 目录下，运行 `hexo s` 便可在本地预览网站。\n6. 修改配置 `docs/_config.yml` 和 `docs/themes/hexo-matery/_config.yml` 信息，改成您自己的信息\n7. 替换 `docs/themes/hexo-matery/source/medias/reward` 之下的二维码为您自己的\n8. 运行命令`hexo  clean`（清除生成文件），`hexo g`（生成网页）， `hexo  s`（本地预览），`hexo d`（部署），详细教程可参考 Hexo 官方网站：[写作](https://hexo.io/zh-cn/docs/writing)\n\n因为本网站是支持多语种的（详细内容见 [多语种的网站](https://hexo.io/zh-cn/docs/permalinks.html)），所以当您建立新文章时，最好使用如下格式：\n\n```sh\n$ hexo new \"Hello World\" --lang zh-CN\n# =\u003e source/_posts/zh-CN/Hello-World.md\n```\n\n其中 `zh-CN` 表示简体中文。\n\n最终的网站的成品：\u003chttps://xinetzone.github.io/\u003e，其中 `xinetzone` 改成您自己的账户名称即可。\n\n## 自定义主题\n\n您可以修改一些主题设置：\n\n### 1 修改网站的友情链接\n\n修改 `docs/source/_data/friends.json`，比如：\n\n```json\n{\n    \"avatar\": \"https://xinetzone.github.io/medias/avatars/cnblogs.jpg\",\n    \"name\": \"写意生活\",\n    \"introduction\": \"博客园\",\n    \"url\": \"https://www.cnblogs.com/q735613050/\",\n    \"title\": \"欢迎进入个人博客\"\n}\n```\n\n其中 `\"avatar\"` 是友情链接的图标，放在 `themes/matery/source/medias/avatars/cnblogs.jpg` 之下。\n\n### 2 在主页添加自定义音乐播放\n\n在 `themes/matery/source/medias/` 目录下创建 `music/` 目录，并将需要的音乐放进入；接着修改文件 `docs/source/_data/musics.json`。比如：\n\n```json\n{\n    \"name\": \"出山\",\n    \"artist\": \"花粥\",\n    \"url\": \"/medias/music/出山.mp3\",\n    \"cover\": \"/medias/music/avatars/chushan.jpg\"\n}\n```\n\n其中 `\"name\"`，`\"artist\"`，`\"cover\"` 分别表示歌曲名字，歌者，封面。歌曲的封面的获取可以使用如下方法（firefox 浏览器）：\n\n首先，进入网易云音乐的网页：\u003chttps://music.163.com/\u003e，搜索您想要的歌曲，比如：\"出山\"，然后按键 `F12`，弹出如下界面：\n\n![网易云音乐的网页搜索“出山”](images/cover.png)\n\n接着选择 `无障碍环境`，然后按照下图指示找到 `DOMNode:img.j-img` 并用鼠标点击：\n\n![找到 DOMNode:img.j-img](images/loc.png)\n\n接着，可在下图的对应位置找到封面的链接：\n\n![获取封面的链接](images/link.png)\n\n最后，将链接的 `?param=130y130` 部分删除，便可直接保存封面图片了。\n\n### 3  添加 gitalk 支持\n\n修改 `docs/themes/matery/_config.yml` 中的 gitalk 配置为：\n\n```json\ngitalk:\n  enable: true\n  owner: xinetzone # 您的账户名称\n  repo: xinetzone.github.io # 网站域名，即“账户名称.github.io”\n  oauth:\n    clientId: # 填入\n    clientSecret: # 填入\n  admin: xinetzone # 您的账户名称\n```\n\n## 可能存在的问题\n\n### 1. RPC failed\n\n当您使用 `git clone` 克隆本仓库，而不是使用 `git clone --recurse` 时，如若报下面的错误：\n\n```sh\nerror: RPC failed; curl 18 transfer closed with outstanding read data remaining\nffatal: the remote end hung up unexpectedly\natal: early EOF\nfatal: index-pack failed\n```\n\n可以在终端输入如下命令解决：\n\n```sh\n$ git config --global http.postBuffer 524288000\n```\n\n如果使用过程中有什么问题可以在文章最后评论区**留言和讨论**，如果觉得文章有用，请:smile:打赏按键：\n\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"100\" src=\"https://xinetzone.github.io/dao/medias/reward/alipay.jpg\"\u003e\n\u003cimg width=\"100\" src=\"https://xinetzone.github.io/dao/medias/reward/wechat.png\"\u003e\n\n## 未完成计划\n\n查看 hits：\u003chttp://hits.dwyl.io/\u003e\n\n- [ ] 学习[给自己的博客加上看板娘——Live2d蕾姆 | 雷姆](https://zhuanlan.zhihu.com/p/35351118)\n- [ ] [hexo博客添加一级分类相册功能](https://liyangzone.com/2019/07/22/hexo博客添加一级分类相册/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxinetzone%2Fdocs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxinetzone%2Fdocs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxinetzone%2Fdocs/lists"}