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
|
|
@ -5,7 +5,7 @@ import { formatDate, formatListItem } from '../../lib/format';
|
|||
import { getSlug, enrichPostWithDates, enrichPostsWithDates, resolveRelatedPosts } from '../../lib/md';
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const rawPosts = await getCollection('md', ({ data }) => data.draft !== true);
|
||||
const rawPosts = await getCollection('md');
|
||||
const allPosts = enrichPostsWithDates(rawPosts);
|
||||
return allPosts.map(post => ({
|
||||
params: { slug: getSlug(post.id) },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue