Reverse order of posts in feed

* Allows feed readers to make sure they get the latest post, even of parsing is limited.
This commit is contained in:
David A. Kennedy 2020-07-22 20:21:57 -04:00
parent ffef660e0e
commit b74f962454

View File

@ -15,7 +15,7 @@ eleventyExcludeFromCollections: true
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
</author>
{%- for post in collections.posts %}
{%- for post in collections.posts | reverse %}
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
<entry>
<title>{{ post.data.title }}</title>