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 }}