From ec00a40aefca73596ab76e3ebe3a8e1129b43688 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 27 Jan 2026 18:27:17 +0000
Subject: [PATCH] chore(deps): bump the production-dependencies group with 4 updates (#2289)

---
 quartz/processors/filter.ts |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/quartz/processors/filter.ts b/quartz/processors/filter.ts
index 04c14a6..b269fb3 100644
--- a/quartz/processors/filter.ts
+++ b/quartz/processors/filter.ts
@@ -1,15 +1,16 @@
-import { PerfTimer } from "../perf"
-import { QuartzFilterPluginInstance } from "../plugins/types"
+import { BuildCtx } from "../util/ctx"
+import { PerfTimer } from "../util/perf"
 import { ProcessedContent } from "../plugins/vfile"
 
-export function filterContent(plugins: QuartzFilterPluginInstance[], content: ProcessedContent[], verbose: boolean): ProcessedContent[] {
+export function filterContent(ctx: BuildCtx, content: ProcessedContent[]): ProcessedContent[] {
+  const { cfg, argv } = ctx
   const perf = new PerfTimer()
   const initialLength = content.length
-  for (const plugin of plugins) {
-    const updatedContent = content.filter(plugin.shouldPublish)
+  for (const plugin of cfg.plugins.filters) {
+    const updatedContent = content.filter((item) => plugin.shouldPublish(ctx, item))
 
-    if (verbose) {
-      const diff = content.filter(x => !updatedContent.includes(x))
+    if (argv.verbose) {
+      const diff = content.filter((x) => !updatedContent.includes(x))
       for (const file of diff) {
         console.log(`[filter:${plugin.name}] ${file[1].data.slug}`)
       }

--
Gitblit v1.10.0