全 blog

不搞后端的后端开发

0%

使用HEXO杂记

使用github域名

创建github仓库,使用github域名

安装HEXO

1
2
3
4
# 安装
npm install -g hexo-cli
# 初始化
hexo init blog

安装next主题

1
git submodule add https://github.com/theme-next/hexo-theme-next themes/next

更改 ./_config.yml文件中theme: next
拷贝./themes/_config -> ./_config.next.yml

然后探索了一下_config.next.yml

部署HEXO

1
2
3
4
deploy:  
type: git
repo: https://github.com/QwQuan/qwquan.github.io.git
branch: main
1
2
3
hexo clean 
hexo generate
hexo deploy

搞定了!