halo文章别名自动加html

Append ".html" to the end of the input with name="slug" if it's not already there

作者
Nicek Wang
今日安裝
0
安裝總數
0
評價
0 0 0
版本
0.2
建立日期
2024-05-11
更新日期
2024-05-11
尺寸
1.1 KB
授權條款
MIT
腳本執行於

由于Halo建站程序目前没有自定义路由后缀的能力,这会影响收录速度,这个脚本将快捷为文章加上.html后缀加快搜索引擎收录速度。当然在此之前您需要将路由设置为/?p={slug},在你点击文章设置时,脚本就会生效了。对了别忘了在代码中替换作用范围