diff --git a/website/src/components/BlogFeed.astro b/website/src/components/BlogFeed.astro index f0c34e7..af72db4 100644 --- a/website/src/components/BlogFeed.astro +++ b/website/src/components/BlogFeed.astro @@ -9,7 +9,7 @@ export interface Props { const { headingLevel = 2, hideAuthor = false } = Astro.props; -const posts = (await getCollection('blog')); +const posts = (await getCollection('blog')).filter((post) => !post.data.hidden); const distinctYears: number[] = posts .map(post => post.data.pubDate.year) diff --git a/website/src/content/blog/2024/01/29/euhwc_toast_to_the_lasses_2024.md b/website/src/content/blog/2024/01/29/euhwc_toast_to_the_lasses_2024.md index 8641a5d..dd456f0 100644 --- a/website/src/content/blog/2024/01/29/euhwc_toast_to_the_lasses_2024.md +++ b/website/src/content/blog/2024/01/29/euhwc_toast_to_the_lasses_2024.md @@ -1,5 +1,6 @@ --- title: EUHWC Toast to the Lassies 2024 +hidden: true description: >- At the EUHWC Burns meet in Ullapool last weekend, I had the last privilege of giving the Toast to diff --git a/website/src/content/config.ts b/website/src/content/config.ts index 58dbc00..8bcd92d 100644 --- a/website/src/content/config.ts +++ b/website/src/content/config.ts @@ -10,6 +10,7 @@ const blog = defineCollection({ type: 'content', schema: z.object({ title: z.string(), + hidden: z.optional(z.boolean()), description: z.string(), pubDate: dateSchema, updatedDate: z.optional(dateSchema),