Merge pull request #69 from davidakennedy/reverseFeed

Reverse order of posts in feed
This commit is contained in:
Zach Leatherman 2020-07-27 10:48:44 -05:00 committed by GitHub
commit 3c1884c5c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>