Limit RSS feed items to 20
This commit is contained in:
parent
2299b21086
commit
53192670cb
|
@ -15,7 +15,7 @@ eleventyExcludeFromCollections: true
|
|||
<name>{{ sitemeta.siteAuthor.name }}</name>
|
||||
<email>{{ sitemeta.siteAuthor.email }}</email>
|
||||
</author>
|
||||
{%- 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 %}
|
||||
<entry>
|
||||
<title>{{ item.data.title }}</title>
|
||||
|
|
Loading…
Reference in New Issue