new blog install
Install Hexo
sudo cnpm i -g hexo-cli
Install butterfly
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
cp themes/butterfly/_config.yml _config.butterfly.yml
echo "the config is exist on root(named \`_config.butterfly.yml\`)" > themes/butterfly/_config.yml
Install plugins
cnpm i --save hexo-renderer-pug hexo-renderer-stylus hexo-generator-search hexo-wordcount vanilla-lazyload hexo-deployer-git
add to _config.yml
search:
path: search.xml
field: post # post, page, all
content: true # include all content of the post
deploy:
type: git
repo: git@github.com:${your repo}
branch: main
modifly the _config.butterfly.yml
wordcount:
enable: true
post_wordcount: true
min2read: true
total_wordcount: true
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 静谧之园!