博客搭建
博客搭建
1. 安装hexo
1 | npm install hexo-cli -g |
2. 初始化博客
1 | hexo init blog |
3. 进入博客目录
1 | cd blog |
4. 安装主题(butterfly)
1 | git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly |
4.1 应用主题
1 | theme: butterfly |
4.2 复制主题配置文件
1 | cp themes/butterfly/_config.yml _config.butterfly.yml |
5. 安装插件
1 | npm install hexo-renderer-pug hexo-renderer-stylus --save |
6. 三步部署(本地预览)
1 | hexo clean |
7. 部署到GithubPages
本站使用Actions自动部署到GithubPages,参考Akilar大佬的教程
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Leo Blog!
评论


