halo文章别名自动加html

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

Autor
Nicek Wang
Installationen heute
0
Installationen gesamt
0
Bewertungen
0 0 0
Version
0.2
Erstellt am
11.05.2024
Letzte Aktualisierung
11.05.2024
Lizenz
MIT
Wird angewandt auf

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