Jacky Zhao
2023-07-01 4c904d88aba14d0d153bfac364630ad61832a73d
quartz/path.ts
@@ -27,6 +27,9 @@
// 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 "."