diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-06-12 13:55:02 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-06-12 13:55:02 +0100 |
| commit | bc35da5976010400c8a761c05f0ba47dafaa270b (patch) | |
| tree | c1fbb67a4eef8082c968b0062a514fe4b79577e7 /website/src/components/BlogFeed.astro | |
| parent | 9ca07414286ef1139ba8dce5be0cfd51b24970c4 (diff) | |
| parent | 952c90bbbf49e11b51b0d5fc6843b6a08156dc1d (diff) | |
Merge branch 'main' of https://github.com/joeacarstairs/personal-website
Diffstat (limited to 'website/src/components/BlogFeed.astro')
| -rw-r--r-- | website/src/components/BlogFeed.astro | 2 |
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) |
