本文最后更新于 2025-04-23T12:52:22+00:00
来自闲🐟老板芬达的订单
要求使用 github page 搭建安知鱼主题: 主题简介 | 安知鱼主题官方文档
先安装nodejs
Node.js — 在任何地方运行 JavaScript
1 2 3 4 5 6 7 8 9 10 11
| npm install -g hexo-cli mkdir dir cd dir hexo init npm install hexo-deployer-git --save git clone -b main https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu
npm install hexo-renderer-pug hexo-renderer-stylus --save cp -rf ./themes/anzhiyu/_config.yml ./_config.anzhiyu.yml
|
修改配置文件主题到anzhiyu
创建github仓库,打开仓库page,创建机器ssh key。
修改配置文件,设置deploy:
1 2 3 4
| deploy: type: git repo: <repository url> branch: [branch]
|
推送hexo d
效果预览:Hexo
老板反馈:
