Jacky Zhao
2023-07-24 55a1fb8c41b6a34cc5cdfc5ec2533ed1f642211d
quartz/plugins/emitters/folderPage.tsx
@@ -22,9 +22,10 @@
    getQuartzComponents() {
      return [Head, Header, Body, ...header, ...beforeBody, Content, ...left, ...right, Footer]
    },
    async emit(_contentDir, cfg, content, resources, emit): Promise<FilePath[]> {
    async emit(ctx, content, resources, emit): Promise<FilePath[]> {
      const fps: FilePath[] = []
      const allFiles = content.map((c) => c[1].data)
      const cfg = ctx.cfg.configuration
      const folders: Set<CanonicalSlug> = new Set(
        allFiles.flatMap((data) => {