refactor: remove draft filtering from public routes
This commit is contained in:
parent
aa349ed7c9
commit
828d637c63
6 changed files with 6 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ import { formatDate, extractDomain, formatListItem } from '../lib/format';
|
|||
import { organizePostsByCategory, getSlug, enrichPostsWithDates } from '../lib/md';
|
||||
import { getTxtFiles } from '../lib/txt';
|
||||
|
||||
const rawPosts = await getCollection('md', ({ data }) => data.draft !== true);
|
||||
const rawPosts = await getCollection('md');
|
||||
const posts = enrichPostsWithDates(rawPosts);
|
||||
const { grouped, categories: sortedCategories } = organizePostsByCategory(posts);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue