From 476639ba3ac309ed4be9bb45730f8acdec62b6ab Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 7 Dec 2022 23:56:53 +0000 Subject: [PATCH] chore: only show the latest daily email in RSS --- website/src/pages/archive.xml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/pages/archive.xml.js b/website/src/pages/archive.xml.js index ba1bc257..57cc1f2b 100644 --- a/website/src/pages/archive.xml.js +++ b/website/src/pages/archive.xml.js @@ -11,7 +11,7 @@ export const get = () => rss({ title: 'Daily email list', description: 'A daily newsletter on software development, DevOps, community, and open-source.', site: import.meta.env.SITE, - items: emails.map((email) => ({ + items: emails.slice(0, 1).map((email) => ({ description: email.compiledContent(), link: `${import.meta.env.SITE}${email.frontmatter.permalink}`, title: email.frontmatter.title,