website: lowercase the website urls (#2893)

This commit is contained in:
M. Sarmad Qadeer 2023-08-17 20:27:55 +05:00 committed by GitHub
parent f1c86d20c9
commit 45b7d09f83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,7 +349,7 @@ module.exports = function (ty) {
if (parsed.path.startsWith("../../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)
}
}).use(markdownItAnchor, {