feat(essay): new "Beyond the Bookshelf" series

This commit is contained in:
Stefan Imhoff
2024-12-04 16:39:27 +01:00
parent 9f81a863fe
commit a028bbf38d
21 changed files with 743 additions and 23 deletions

View File

@@ -10,7 +10,7 @@ import GridLayout from '../layouts/GridLayout.astro';
import PageTitle from '../components/PageTitle.astro';
import TagComponent from '../components/Tag.astro';
const allJournal: Journal[] = await getCollection('journal');
const allJournal: Journal[] = await getCollection('journal', ({ data }: Journal) => !data.draft);
const uniqueTags = [...new Set(allJournal.map((entry) => entry.data.tags).flat())];
uniqueTags.sort((a, b) => a.localeCompare(b));