From 435800af35597796a919fe5e316cec1ddd99ba9b Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Thu, 11 Apr 2024 07:34:50 +0100 Subject: [PATCH] Only show the latest 5 posts --- src/feeds/rss.njk | 1 + src/feeds/styles/atom.njk | 2 +- src/feeds/styles/rss.njk | 4 ++-- src/feeds/tags/rss.njk | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/feeds/rss.njk b/src/feeds/rss.njk index f5d9791..6fa4004 100644 --- a/src/feeds/rss.njk +++ b/src/feeds/rss.njk @@ -23,6 +23,7 @@ eleventyImport: {{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }} {{ post.date | dateToRfc822 }} {{ metadata.author.name }} + {{ post.content | excerpt }} {{ absolutePostUrl }} {%- endfor %} diff --git a/src/feeds/styles/atom.njk b/src/feeds/styles/atom.njk index 2a8f550..e805e3f 100644 --- a/src/feeds/styles/atom.njk +++ b/src/feeds/styles/atom.njk @@ -31,7 +31,7 @@ eleventyExcludeFromCollections: true

Recent Items

- +
diff --git a/src/feeds/styles/rss.njk b/src/feeds/styles/rss.njk index 684ab79..795b0e4 100644 --- a/src/feeds/styles/rss.njk +++ b/src/feeds/styles/rss.njk @@ -32,7 +32,7 @@ eleventyExcludeFromCollections: true

Recent Items

- +
@@ -72,7 +72,7 @@ eleventyExcludeFromCollections: true

- +

Published: diff --git a/src/feeds/tags/rss.njk b/src/feeds/tags/rss.njk index 2ce48ec..2c24a3a 100644 --- a/src/feeds/tags/rss.njk +++ b/src/feeds/tags/rss.njk @@ -27,6 +27,7 @@ eleventyImport: {{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }} {{ post.date | dateToRfc822 }} {{ metadata.author.name }} + {{ post.content | excerpt }} {{ absolutePostUrl }} {%- endfor %}