hexo博客安装方法
termux
termux安装准备
pkg换源
1 | sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable main@' $PREFIX/etc/apt/sources.list |
需要在目录下运行安装
1 | mkdir hexo |
hexo
npm换源(淘宝)
1 | npm config set registry https://registry.npmmirror.com |
安装
1 | npm install hexo-cli -g |
启动命令
1 | hexo g |
主题
下载主题
1 | git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly |
vim编辑根目录下_config.yml中的theme:butterfly
vim themes/butterfly/_config.yml
安装插件
1 | npm install hexo-renderer-pug hexo-renderer-stylus --save |
自定义样式
都通过修改文件themes/butterfly/_config.yml中的模块,根据相关备注修改模块。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 HAHA!




