mirror of
https://github.com/ZetaKebab/quartz.git
synced 2025-06-22 08:44:36 +00:00
local and global graph
This commit is contained in:
@ -13,10 +13,6 @@ export function trimPathSuffix(fp: string): string {
|
||||
cleanPath = cleanPath.slice(0, -"index".length)
|
||||
}
|
||||
|
||||
if (cleanPath === "") {
|
||||
cleanPath = "./"
|
||||
}
|
||||
|
||||
return cleanPath + anchor
|
||||
}
|
||||
|
||||
@ -36,7 +32,7 @@ export function slugify(s: string): string {
|
||||
export function resolveToRoot(slug: string): string {
|
||||
let fp = trimPathSuffix(slug)
|
||||
|
||||
if (fp === "./") {
|
||||
if (fp === "") {
|
||||
return "."
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user