We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f67d57d commit b8fad4dCopy full SHA for b8fad4d
1 file changed
src/pages/index.astro
@@ -13,7 +13,10 @@ const orderedPosts = posts.sort((a, b) => {
13
const bDate = new Date(b.data.pubDate);
14
return bDate.valueOf() - aDate.valueOf();
15
});
16
-const announcements = await getCollection("announcements");
+const announcements = await getCollection(
17
+ "announcements",
18
+ ({ data }) => data.show === true,
19
+);
20
---
21
22
<BaseLayout title="Milán Herke - Software engineer">
0 commit comments