diff --git a/_data/metadata.json b/_data/metadata.json index f94ee8e..7874f05 100755 --- a/_data/metadata.json +++ b/_data/metadata.json @@ -14,6 +14,7 @@ }, "author": { "name": "Your Name Here", - "email": "youremailaddress@example.com" + "email": "youremailaddress@example.com", + "url": "https://myurl.com/" } } diff --git a/feed/feed.njk b/feed/feed.njk index ce618db..161fc93 100755 --- a/feed/feed.njk +++ b/feed/feed.njk @@ -1,5 +1,6 @@ --- -permalink: feed/feed.xml +# Metadata comes from _data/metadata.json +permalink: "{{ metadata.feed.path }}" eleventyExcludeFromCollections: true --- diff --git a/feed/json.njk b/feed/json.njk index 97e0841..a3c98e3 100644 --- a/feed/json.njk +++ b/feed/json.njk @@ -1,5 +1,6 @@ --- -permalink: feed/feed.json +# Metadata comes from _data/metadata.json +permalink: "{{ metadata.jsonfeed.path }}" eleventyExcludeFromCollections: true --- { @@ -13,8 +14,8 @@ eleventyExcludeFromCollections: true "url": "{{ metadata.author.url }}" }, "items": [ - {%- for post in collections.posts %} - {% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset -%} + {%- for post in collections.posts | reverse %} + {%- set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset -%} { "id": "{{ absolutePostUrl }}", "url": "{{ absolutePostUrl }}",