We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a4c60f commit 9ffa6eeCopy full SHA for 9ffa6ee
src/markdoc/layouts/Post.svelte
@@ -39,7 +39,9 @@
39
| boolean;
40
export let lastUpdated: string;
41
42
- const posts = getContext<PostsData[]>('posts')?.filter((post) => !post.unlisted);
+ const posts = getContext<PostsData[]>('posts')?.filter(
43
+ (post) => !(post.unlisted ?? false) && !(post.draft ?? false)
44
+ );
45
const authors = getContext<AuthorData[]>('authors');
46
const authorData = authors.find((a) => a.slug === author);
47
0 commit comments