halo文章别名自动加html

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

Autor
Nicek Wang
Dziennych instalacji
0
Wszystkich instalacji
0
Oceny
0 0 0
Wersja
0.2
Utworzono
11-05-2024
Zaktualizowano
11-05-2024
Licencja
MIT
Dotyczy

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