From 53192670cb2f0711625bd0244b49105b40af2633 Mon Sep 17 00:00:00 2001
From: Helen Chong <119173961+helenclx@users.noreply.github.com>
Date: Sat, 8 Jun 2024 17:50:18 +0800
Subject: [PATCH] Limit RSS feed items to 20
---
src/feed.njk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/feed.njk b/src/feed.njk
index e7d8af5b..e0588613 100644
--- a/src/feed.njk
+++ b/src/feed.njk
@@ -15,7 +15,7 @@ eleventyExcludeFromCollections: true
{{ sitemeta.siteAuthor.name }}
{{ sitemeta.siteAuthor.email }}
- {%- for item in collections["feed items"] | reverse %}
+ {%- for item in collections["feed items"] | reverse | itemLimit(20) %}
{% set absolutePostUrl %}{{ item.url | url | absoluteUrl(sitemeta.siteUrl) }}{% endset %}
{{ item.data.title }}