Tony's Blog - 古人誠不我欺 - Hexo https://iyiy.de/tag/Hexo/ Hexo一些拓展插件 https://iyiy.de/13.html 2021-10-31T21:49:00+08:00 Hexo-all-minifierhexo-all-minifier压缩 Hexo 生成的文件安装插件命令npm install hexo-all-minifier --save然后在博客根目录下的_config.yml文件中配置插件all_minifier: trueHexo-abbrlinkHexo-abbrlink通过 Hex 算法生成永久的文章链接安装插件命令npm install hexo-abbrlink --save然后在博客根目录下的_config.yml文件中配置插件permalink: posts/:abbrlink.html # 此处可以自己设置,也可以直接使用 :/abbrlink abbrlink: alg: crc16 #算法: crc16(default) and crc32 rep: dec #进制: dec(default) and hex以下是算法样例crc16 & hex https://post.zz173.com/posts/66c8.html crc16 & dec https://post.zz173.com/posts/65535.html crc32 & hex https://post.zz173.com/posts/8ddf18fb.html crc32 & dec https://post.zz173.com/posts/1690090958.htmlHexo-git-backupHexo-git-backup备份博客文件到云端安装插件命令npm install hexo-git-backup --save然后在博客根目录下的_config.yml文件中配置插件backup: type: git repository: backup: [email protected]:xxx/xxx.git,branchName配置完成后使用hexo b或者hexo backup命令进行备份hexo-deployer-git安装插件命令npm install hexo-deployer-git --save然后在博客根目录下的_config.yml文件中配置插件deploy: type: git repository: [email protected]:xxx/xxx branch: branchName