Limit RSS feed items to 15

This commit is contained in:
Helen Chong 2024-09-14 22:30:29 +08:00
parent e1bfb45496
commit cf82976e9c
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ eleventyComputed:
<name>{{ sitemeta.siteAuthor.name }}</name>
<email>{{ sitemeta.siteAuthor.email }}</email>
</author>
{%- for item in collections["feed items"] | reverse | itemLimit(20) %}
{%- for item in collections["feed items"] | reverse | itemLimit(15) %}
{% set absolutePostUrl %}{{ item.url | url | absoluteUrl(sitemeta.siteUrl) }}{% endset %}
<entry>
<title>{{ item.data.title }}</title>