diff --git a/src/lib/articles/legacy-source.ts b/src/lib/articles/legacy-source.ts index fc6ff21..0b832a2 100644 --- a/src/lib/articles/legacy-source.ts +++ b/src/lib/articles/legacy-source.ts @@ -74,11 +74,28 @@ const SECTION_TAGS: Record = { news: [], }; +// Map between site sections and the AI-derived categories now stored in +// bb.wp_imported_posts.category. Each section query uses these to pull +// only the relevant slice of the archive — otherwise /gear and +// /technology would both return everything that doesn't match +// show-coverage (the old fallback). +// Production-tech categories live here: +// "Streaming & IP", "Cloud & Workflow", "AI & Automation", +// "Live Production", "Post Production", "Broadcast Production" +// Hardware/gear: +// "Cameras & Capture", "Audio" const SECTION_CATEGORIES: Record = { - gear: ["Gear", "Reviews"], - technology: ["Technology", "Streaming", "Live Production"], + gear: ["Cameras & Capture", "Audio"], + technology: [ + "Streaming & IP", + "Cloud & Workflow", + "AI & Automation", + "Live Production", + "Post Production", + "Broadcast Production", + ], "show-coverage": ["Show Coverage"], - news: [], + news: ["Industry News"], }; function authorSlug(name: string | null): string {