Jacky Zhao
2023-08-17 2f6747b1666316e579c6e7238092ac6a65d00925
quartz/plugins/emitters/folderPage.tsx
@@ -6,7 +6,13 @@
import { ProcessedContent, defaultProcessedContent } from "../vfile"
import { FullPageLayout } from "../../cfg"
import path from "path"
import { CanonicalSlug, FilePath, ServerSlug, canonicalizeServer, joinSegments } from "../../path"
import {
  CanonicalSlug,
  FilePath,
  ServerSlug,
  canonicalizeServer,
  joinSegments,
} from "../../util/path"
import { defaultListPageLayout, sharedPageComponents } from "../../../quartz.layout"
import { FolderContent } from "../../components"
@@ -74,9 +80,7 @@
        }
        const content = renderPage(slug, componentData, opts, externalResources)
        const fp = (file.data.slug! + ".html") as FilePath
        await emit({
        const fp = await emit({
          content,
          slug: file.data.slug!,
          ext: ".html",