hexo-插件
hexo-abbrlink
Github: https://github.com/rozbo/hexo-abbrlink
A Hexo plugin to generate static post link based on post titles.
根目录右键git bash here
,下载插件:
1 | npm i hexo-abbrlink --save |
在站点根目录的_config.yml
内配置:
修改permalink
:
1 | permalink: posts/:abbrlink/ |
加入下方配置:
1 | # abbrlink config |
example: https://blog.imciraos.com/posts/5a3fb175
hexo-generate-feed
Github: https://github.com/hexojs/hexo-generator-feed
demo: https://blog.imciraos.com/atom.xml
In the front-matter of your post, you can optionally add a description, intro or description setting to write a summary for the post. Otherwise the summary will default to the description or the first 140 characters of the post.
下载插件:
1 | npm i hexo-generate-feed --save |
再在根目录站点配置文件_config.yml
内加入如下配置:
1 | # feed - RSS |
在主题配置文件中加入链接:
我建议加在social icons
处:
1 | # social settings (社交圖標設置) |
其中,
iconfont icon-RSS
为窝添加的aliyun iconfont 图标
。当然,你也可以自定义,fontawesome
也可以。
hexo-bilibili-bangumi
在这里:增加bilibili-追番列表
hexo-offline-popup
hexo-offline-popup是一个hexo插件, 它可加速您的Hexo网站的加载速度,以及网站内容更新弹窗提示。
在博客根目录右键单击Git bash here
,输入下面这一行代码,来下载插件。
1 | npm install hexo-offline-popup --save |
之后,在博客根目录_config.yml
内引入下面代码:
1 | # offline config passed to sw-precache. |
urlPattern
,注意通配符。cdn.jsdelivr.net
域名中有npm
,故将此域名填在此origin
处。origin
可以用来输入自己引用的外链的域名,例如alicdn.com
、cdn.jsdelivr.net
、i.loli.net
等等。
部署!
1 | hexo cl && hexo g && hexo d |
hexo-filter-nofollow
Add nofollow attribute to all external links automatically.
hexo-generator-sitemap
咕咕咕