feat(post-overview): add excludeTag functionality for filtering posts
Deploy / verify (push) Successful in 39s
Deploy / deploy (push) Failing after 1m7s

- Introduced `excludeTag` property in PostOverviewBlockData interface to allow exclusion of specific tag slugs.
- Implemented `excludePostsByTagSlugs` function to filter out posts containing specified tag slugs.
- Updated `resolvePostOverviewBlocks` function to utilize the new exclusion logic, enhancing post filtering capabilities.
This commit is contained in:
Peter Meier
2026-04-19 14:18:50 +02:00
parent 4ec2aa10ec
commit 2ee451f4ca
2 changed files with 29 additions and 0 deletions
+2
View File
@@ -182,6 +182,8 @@ export interface PostOverviewBlockData {
posts?: unknown[];
/** Tag-Slugs, nach denen gefiltert wird (nur bei allPosts true). */
filterByTag?: string[];
/** Tag-Slugs, die ausgeschlossen werden (optional, nach filterByTag angewendet). */
excludeTag?: string[];
/** Max. Anzahl Einträge. */
numberItems?: number;
/** "list" | "cards". */