1.组件
hexo-abbrlink
项目地址:https://github.com/rozbo/hexo-abbrlink
2.原理
对标题
+时间
进行md5
然后再转base64
,保存在front-matter
中。
3.安装
npm install hexo-abbrlink --save
4.配置
打开config.yml
,修改permalink
中类似这样
permalink: posts/archives/:abbrlink.html/
样例
https://blog.garryde.com/archives/56901.html
5.使用
在文章初次被运行Generat的时候,会在顶部生成一个abbrlink:
项,此即为固定的访问链接。
6.异常排除
可能遇到不能生成链接的情况,执行
hexo clean