Ben Schlegel
2023-08-25 340e3ef5116cd99c8ddfdbb3d9e0bbd914e07825
quartz/plugins/emitters/folderPage.tsx
@@ -6,7 +6,14 @@
import { ProcessedContent, defaultProcessedContent } from "../vfile"
import { FullPageLayout } from "../../cfg"
import path from "path"
import { FilePath, FullSlug, SimpleSlug, joinSegments, simplifySlug } from "../../util/path"
import {
  FilePath,
  FullSlug,
  SimpleSlug,
  _stripSlashes,
  joinSegments,
  simplifySlug,
} from "../../util/path"
import { defaultListPageLayout, sharedPageComponents } from "../../../quartz.layout"
import { FolderContent } from "../../components"
@@ -54,7 +61,7 @@
      )
      for (const [tree, file] of content) {
        const slug = simplifySlug(file.data.slug!)
        const slug = _stripSlashes(simplifySlug(file.data.slug!)) as SimpleSlug
        if (folders.has(slug)) {
          folderDescriptions[slug] = [tree, file]
        }