Skip to content

Commit

Permalink
Limited to 25 feed items #98
Browse files Browse the repository at this point in the history
  • Loading branch information
bmann committed Jan 19, 2024
1 parent 0b9853a commit 6444806
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ date: Last Modified
<name>{{ collections.authors[0].name }}</name>
</author>
{%- for post in collections.posts %}
{% if loop.index0 < 30 %}
<entry>
<title>{{ post.title }}</title>
<link href="https://fission.codes/blog{{ post.url }}"/>
<updated>{{ post.updated_at }}</updated>
<id>https://fission.codes/blog{{ post.url }}</id>
<content type="html">{{ post.html | htmlToAbsoluteUrls(site.url + page.url) }}</content>
</entry>
{% endif %}
{%- endfor %}
</feed>

0 comments on commit 6444806

Please sign in to comment.