mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-21 21:45:42 -05:00
fix: force lowercase URLs to resolve case sensitivity errors
This commit is contained in:
parent
9576701d85
commit
0e0f683970
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ tsconfig.tsbuildinfo
|
|||||||
private/
|
private/
|
||||||
.replit
|
.replit
|
||||||
replit.nix
|
replit.nix
|
||||||
|
.vscode/
|
||||||
@ -59,6 +59,7 @@ function sluggify(s: string): string {
|
|||||||
.split("/")
|
.split("/")
|
||||||
.map((segment) =>
|
.map((segment) =>
|
||||||
segment
|
segment
|
||||||
|
.toLowerCase()
|
||||||
.replace(/\s/g, "-")
|
.replace(/\s/g, "-")
|
||||||
.replace(/&/g, "-and-")
|
.replace(/&/g, "-and-")
|
||||||
.replace(/%/g, "-percent")
|
.replace(/%/g, "-percent")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user