Felix Nie
2025-03-16 a72b1a422485d4f2258e58c1f76f933cb24cf455
quartz/plugins/emitters/tagPage.tsx
@@ -71,8 +71,7 @@
      return graph
    },
    async emit(ctx, content, resources): Promise<FilePath[]> {
      const fps: FilePath[] = []
    async *emit(ctx, content, resources) {
      const allFiles = content.map((c) => c[1].data)
      const cfg = ctx.cfg.configuration
@@ -114,8 +113,8 @@
      for (const tag of tags) {
        const slug = joinSegments("tags", tag) as FullSlug
        const externalResources = pageResources(pathToRoot(slug), resources)
        const [tree, file] = tagDescriptions[tag]
        const externalResources = pageResources(pathToRoot(slug), file.data, resources)
        const componentData: QuartzComponentProps = {
          ctx,
          fileData: file.data,
@@ -127,16 +126,13 @@
        }
        const content = renderPage(cfg, slug, componentData, opts, externalResources)
        const fp = await write({
        yield write({
          ctx,
          content,
          slug: file.data.slug!,
          ext: ".html",
        })
        fps.push(fp)
      }
      return fps
    },
  }
}