anzhiyu主题搭建记录

来自闲🐟老板芬达的订单

要求使用 github page 搭建安知鱼主题: 主题简介 | 安知鱼主题官方文档

先安装nodejs
Node.js — 在任何地方运行 JavaScript

1
2
3
4
5
6
7
8
9
10
11
# 安装hexo
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> # https://bitbucket.org/JohnSmith/johnsmith.bitbucket.io
branch: [branch]

推送hexo d

效果预览:Hexo
老板反馈:


anzhiyu主题搭建记录
http://hexo.zhywyt.me/posts/64880/
作者
zhywyt
发布于
2025年3月16日
更新于
2025年4月23日
许可协议