From 0ea17651dd461deec74a27e3e5fdc054ff726b36 Mon Sep 17 00:00:00 2001 From: Emmanuel Bernard Date: Sun, 12 May 2024 19:15:45 +0200 Subject: [PATCH] Increase RSS feed to 50 last entries Also update property name to latest from jekyll-feed Receiving only the last 10 is detremental for people only occasionally fetching RSS feeds through their reader. We could go infinite but 50 bring up back 6 months in the past that is a good start. --- _config.yml | 2 ++ feed.xml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 6de7d3f204b..1242e93e292 100755 --- a/_config.yml +++ b/_config.yml @@ -239,3 +239,5 @@ jekyll-archives: ############################################################ +feed: + posts_limit: 50 \ No newline at end of file diff --git a/feed.xml b/feed.xml index f77d178bbdb..9b37f209ff3 100644 --- a/feed.xml +++ b/feed.xml @@ -10,7 +10,8 @@ layout: null {{ site.url }} {{ site.description | xml_escape }} {{ site.time | date_to_rfc822 }} - {% for post in site.posts limit:10 %} + {% assign posts_limit = site.feed.posts_limit | default: 10 %} + {% for post in site.posts limit: posts_limit %} {{ post.title | xml_escape }}