Skip to content

Commit

Permalink
Increase RSS feed to 50 last entries
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
emmanuelbernard committed May 13, 2024
1 parent a43b4dc commit 0ea1765
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,5 @@ jekyll-archives:


############################################################
feed:
posts_limit: 50
3 changes: 2 additions & 1 deletion feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ layout: null
<link>{{ site.url }}</link>
<description>{{ site.description | xml_escape }}</description>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
{% for post in site.posts limit:10 %}
{% assign posts_limit = site.feed.posts_limit | default: 10 %}
{% for post in site.posts limit: posts_limit %}
<item>
<title>{{ post.title | xml_escape }}</title>
<link>
Expand Down

0 comments on commit 0ea1765

Please sign in to comment.