Jacky Zhao
2023-07-04 ab9da02c60c962128820e6874e6f07c98bc3dda7
quartz/plugins/emitters/folderPage.tsx
@@ -6,6 +6,7 @@
import { ProcessedContent, defaultProcessedContent } from "../vfile"
import { FullPageLayout } from "../../cfg"
import path from "path"
import { clientSideSlug } from "../../path"
export const FolderPage: QuartzEmitterPlugin<FullPageLayout> = (opts) => {
  if (!opts) {
@@ -36,7 +37,7 @@
      ])))
      for (const [tree, file] of content) {
        const slug = file.data.slug!
        const slug = clientSideSlug(file.data.slug!)
        if (folders.has(slug)) {
          folderDescriptions[slug] = [tree, file]
        }