1.安装 nvm (类似于python的 conda)
1 | curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash |
2. 安装 nodejs
1 | $ nvm install 18 |
3. clone 项目
由于之前deploy 过项目, 直接克隆就好
1 | git clone git@github.com:xxxxx/hexo_blog.git |
4. 编译
1 | cd hexo_blog |
5. 下载 NexT.Mist v5.1.3 主题
1 | git clone -b v5.1.3 https://github.com/iissnan/hexo-theme-next.git themes/next |
6. 修改翻页标签乱码
1 | 参考 https://blog.csdn.net/qq_36852780/article/details/104897491 |
7.主题设置, 防止404 或者页面跳转错误问题
1 | 修改主题包下的 _config.yml |
1 | 修改主题包下的 _config.yml |
8. 跑起来
1 | hexo clean && hexo g && hexo s |
9. 发布
需要配置git仓库, 参考 https://hexo.io/docs/one-command-deployment
然后执行
1 | hexo clean && hexo deploy |