summaryrefslogtreecommitdiff
path: root/website/src/components
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2024-06-11 11:27:00 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2024-06-11 11:27:00 +0100
commit952c90bbbf49e11b51b0d5fc6843b6a08156dc1d (patch)
tree4b3474308f1f58fd7c45afdbccaf5ea515853784 /website/src/components
parentfe154c01cff35bf422bc6183e8629f28f352b0a6 (diff)
Can hide blog posts
Diffstat (limited to 'website/src/components')
-rw-r--r--website/src/components/BlogFeed.astro2
1 files changed, 1 insertions, 1 deletions
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)