website: lowercase the website urls (#2893)
This commit is contained in:
parent
f1c86d20c9
commit
45b7d09f83
@ -349,7 +349,7 @@ module.exports = function (ty) {
|
|||||||
if (parsed.path.startsWith("../../blog")) {
|
if (parsed.path.startsWith("../../blog")) {
|
||||||
parsed.path = parsed.path.replace("../../blog", "/blog")
|
parsed.path = parsed.path.replace("../../blog", "/blog")
|
||||||
}
|
}
|
||||||
parsed.path = parsed.path.replace(/\.md$/, ".html")
|
parsed.path = parsed.path.replace(/\.md$/, ".html").toLowerCase()
|
||||||
return uri.serialize(parsed)
|
return uri.serialize(parsed)
|
||||||
}
|
}
|
||||||
}).use(markdownItAnchor, {
|
}).use(markdownItAnchor, {
|
||||||
|
Loading…
Reference in New Issue
Block a user