mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
feat(essay): new "Beyond the Bookshelf" series
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user