在配置Butterfly的过程中会用到一些重要的网站和技巧,在这边记录一下。
下载的地址更改
1 2 3 4
| # 原本的地址是: npm config set registry https://registry.npmjs.org # 淘宝镜像的地址: npm config set registry https://registry.npm.taobao.org
|
用npm下载的注意事项
1 2 3 4 5
| # 先进npm的官网: https://www.npmjs.com/ # 找到对应的包后下载: npm install hexo-generator-search@3.0.4 --save # 根据@后买你的版本号可以指定下载
|
More info: npm
更新追番列表
1 2
| # 在hexo generate或hexo deploy之前使用hexo bangumi -u命令更新追番数据,使用hexo cinema -u命令更新追剧数据! # 删除数据命令:hexo bangumi -d/hexo cinema -d
|
博客内插入音乐
1 2
| # 输入如下代码: {% meting "7868005687" "tencent" "playlist" "theme:#555" "mutex:true" "listmaxheight:1000px" "preload:auto" %} # 博客内插入音乐会造成全局吸底不显示的问题(待解决)
|
侧边栏放置待电子时钟
1
| # npm install hexo-butterfly-clock-anzhiyu@1.1.8 --save
|