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:
@@ -1,5 +1,7 @@
|
||||
---
|
||||
// Cspell:words astro imhoff fullsize webp pagefind
|
||||
import type { CollectionEntry } from 'astro:content';
|
||||
type JournalType = CollectionEntry<'journal'>;
|
||||
import { getCollection } from 'astro:content';
|
||||
|
||||
import { formatPosts, isProduction, sortMarkdownByDate } from '../utils';
|
||||
@@ -28,7 +30,7 @@ import { Content as Journal } from '../text/homepage/journal.mdx';
|
||||
|
||||
import { mapping } from '../mdx-components';
|
||||
|
||||
const allPosts = await getCollection('journal');
|
||||
const allPosts = await getCollection('journal', ({ data }: JournalType) => !data.draft);
|
||||
const formattedLatest = formatPosts(allPosts, { limit: 6 });
|
||||
|
||||
const title = 'Stefan Imhoff';
|
||||
|
||||
Reference in New Issue
Block a user