mirror of
https://github.com/ZetaKebab/quartz.git
synced 2025-06-22 08:44:36 +00:00
rss + sitemap
This commit is contained in:
@ -27,6 +27,9 @@ export function slugify(s: string): string {
|
||||
// resolve /a/b/c to ../../
|
||||
export function resolveToRoot(slug: string): string {
|
||||
let fp = trimPathSuffix(slug)
|
||||
if (fp.endsWith("index")) {
|
||||
fp = fp.slice(0, -"index".length)
|
||||
}
|
||||
|
||||
if (fp === "") {
|
||||
return "."
|
||||
|
Reference in New Issue
Block a user