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},在你点击文章设置时,脚本就会生效了。对了别忘了在代码中替换作用范围