Jacky Zhao
2023-08-03 fdf1e2a41d079c4f2d1f3df7c297fa0d92a18cc9
quartz/plugins/emitters/contentIndex.ts
@@ -68,7 +68,8 @@
  opts = { ...defaultOptions, ...opts }
  return {
    name: "ContentIndex",
    async emit(_contentDir, cfg, content, _resources, emit) {
    async emit(ctx, content, _resources, emit) {
      const cfg = ctx.cfg.configuration
      const emitted: FilePath[] = []
      const linkIndex: ContentIndex = new Map()
      for (const [_tree, file] of content) {