npm国内镜像源切换

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

如果返回https://registry.npmmirror.com,说明镜像配置成功。

Github Action 部署

安装Hexo

1
2
3
4
npm install hexo-cli -g
hexo init <folder>
cd <folder>
npm install

安装Butterfly

1
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly

安装插件

渲染器

如果你没有 pug 以及 stylus 的渲染器,请下载安装:

1
npm install hexo-renderer-pug hexo-renderer-stylus --save

本地搜索依赖

1
npm install hexo-generator-search --save

sitemap 网站地图插件

1
2
npm install hexo-generator-sitemap --save
npm install hexo-generator-baidu-sitemap --save-dev

Rss

1
npm install hexo-generator-feed --save

追番插件

1
npm install hexo-bilibili-bangumi --save

百度主动推送

1
npm install hexo-baidu-url-submit --save

该插件会和内容加密插件有冲突,当前二存一。

aplayer

1
npm install hexo-tag-aplayer --save

配置自定义 css

配置pwa

添加外挂标签

新建[Blogroot]/source/js/ali_font.js, 输入以下内容

添加wowjs特效

添加留言板:薇尔莉特信封

使用 Github Action 实现全自动部署

Todo

页脚 github 徽标和计时器

1
npm install hexo-butterfly-footer-beautify --save