diff --git a/src/lib/feed.ts b/src/lib/feed.ts index 98a99a4..4c0128c 100644 --- a/src/lib/feed.ts +++ b/src/lib/feed.ts @@ -78,7 +78,9 @@ export async function addPostsToFeed(feed: Feed, main?: boolean) { .slice(0,20); posts.forEach((post) => { - const url: string = `${baseURL}/posts/${post.id}` + if (post.data.draft) { return } + + const url: string = `${baseURL}/posts/${post.slug}` let title: string = ''; if (main) { title = title.concat('[blog] ');