惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
GbyAI
GbyAI
I
InfoQ
C
Cisco Blogs
T
Tor Project blog
NISL@THU
NISL@THU
N
Netflix TechBlog - Medium
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
T
The Exploit Database - CXSecurity.com
H
Help Net Security
Cisco Talos Blog
Cisco Talos Blog
The Register - Security
The Register - Security
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
A
Arctic Wolf
Stack Overflow Blog
Stack Overflow Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Palo Alto Networks Blog
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
P
Privacy International News Feed
L
LINUX DO - 热门话题
Know Your Adversary
Know Your Adversary
L
LangChain Blog
AWS News Blog
AWS News Blog
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
U
Unit 42
P
Privacy & Cybersecurity Law Blog
Spread Privacy
Spread Privacy
WordPress大学
WordPress大学
Latest news
Latest news
L
Lohrmann on Cybersecurity
小众软件
小众软件
阮一峰的网络日志
阮一峰的网络日志
Simon Willison's Weblog
Simon Willison's Weblog
雷峰网
雷峰网
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Y
Y Combinator Blog
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements
C
Cybersecurity and Infrastructure Security Agency CISA
Martin Fowler
Martin Fowler
S
Schneier on Security
C
CERT Recently Published Vulnerability Notes
B
Blog
Project Zero
Project Zero
Recorded Future
Recorded Future

Mo的记事簿

安知鱼主题美化及实用教程库 给群晖套件版Emby添加网络代理 保姆式Hexo博客搭建教程 类原生安卓网络和时间修复 解决网站 URL 加个 index.html 后 Twikoo 评论显示问题 Front-matter 的基本认识 使用fastgithub解决GitHub无法访问 主题标签 Tag Plugins 雨世界地图(简体中文) Twikoo 添加自定义表情包 终于把hexo博客整好啦~
abbrlink插件生成永久固定链接
MortalCat · 2023-07-23 · via Mo的记事簿

AI初始化中...

介绍自己 🐱

生成本文简介 🐈

推荐相关文章 📖

前往主页 🏠

Hexo前端seohexoabbrlink

把博客的链接优化了一下,终于不是托一大串了( ̄︶ ̄)↗

对于abbrlik插件可详见项目源地址:

视频教程可见安知鱼大佬的b站视频

安装

1
npm install hexo-abbrlink --save

修改 hexo config.yml 文件中的永久链接为 posts/:abbrlink/ 并进行相关设置

1
2
3
4
5
permalink: posts/:abbrlink/ 
permalink_defaults:
pretty_urls:
trailing_index: false
trailing_html: false

当然你也可以设置为 permalink: posts/:abbrlink.html 这种结尾带 .html
记得配置 trailing_html: true

将以下内容复制到 hexo config.yml 的最底下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16



abbrlink:
alg: crc32
rep: hex
drafts: false


auto_category:
enable: true
depth:
over_write: false
auto_title: false
auto_date: false
force: false

生成链接示例

以下为带.html生成示例

1
2
3
4
crc16 & hex
https://xiowo.net/posts/55c6.html
crc16 & dec
https://xiowo.net/posts/43212.html
1
2
3
4
crc32 & hex
https://xiowo.bet/posts/6ec16a2c.html
crc32 & dec
https://xiowo.net/posts/1521457752.html

注意

对于先前已有文章的,请使用 hexo clean 清除以前生成的文章缓存,然后 hexo g 重新渲染即可

评论恢复

如果你在使用插件后评论丢失,恢复原先评论可直接修改数据表中的 urlhref 键值未当前新页面路径,或在 Twikoo 管理面板 导出评论 json 数据使用代码编辑器将相关评论中的 urlhref 字段中修改,然后重新导入(注意:导入前需要手动删除原twikoo所有评论,确保你已做好备份!!!)

头像头像

MortalCat

MortalCat's blog

本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Mo的记事簿