site: hide draft posts in blog rss feed

pull/2455/head
Conduitry 6 years ago
parent 0536de5bb8
commit 85d3f769c7

@ -20,7 +20,7 @@ const rss = `
<title>Svelte</title>
<link>https://svelte.dev/blog</link>
</image>
${get_posts().map(post => `
${get_posts().filter(post => !post.metadata.draft).map(post => `
<item>
<title>${post.metadata.title}</title>
<link>https://svelte.dev/blog/${post.slug}</link>

Loading…
Cancel
Save