termux

termux安装准备

pkg换源

1
2
3
4
5
6
7
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

pkg update

pkg install nodejs-lts
pkg install git
pkg install vim

需要在目录下运行安装

1
2
3
mkdir hexo
chmod 777 hexo
cd hexo

hexo

npm换源(淘宝)

1
npm config set registry https://registry.npmmirror.com

安装

1
2
npm install hexo-cli -g
hexo init

启动命令

1
2
hexo g
hexo s

主题

下载主题

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中的模块,根据相关备注修改模块。