From a9f9d1bc96e514d8a8c73f1c19ede3dcd755b9e5 Mon Sep 17 00:00:00 2001 From: Ben Edwards Date: Tue, 23 Jul 2019 18:00:11 +0100 Subject: [PATCH] Builds feed URL from site URL to reduce replication --- _data/metadata.json | 1 - feed/feed.njk | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 _data/metadata.json mode change 100644 => 100755 feed/feed.njk diff --git a/_data/metadata.json b/_data/metadata.json old mode 100644 new mode 100755 index 9fb34c4..8d2a754 --- a/_data/metadata.json +++ b/_data/metadata.json @@ -6,7 +6,6 @@ "subtitle": "I am writing about my experiences as a naval navel-gazer.", "filename": "feed.xml", "path": "/feed/feed.xml", - "url": "https://myurl.com/feed/feed.xml", "id": "https://myurl.com/" }, "author": { diff --git a/feed/feed.njk b/feed/feed.njk old mode 100644 new mode 100755 index 5711fe1..eec5022 --- a/feed/feed.njk +++ b/feed/feed.njk @@ -6,7 +6,8 @@ eleventyExcludeFromCollections: true {{ metadata.title }} {{ metadata.feed.subtitle }} - + {% set absoluteUrl %}{{ metadata.feed.path | url | absoluteUrl(metadata.url) }}{% endset %} + {{ collections.posts | rssLastUpdatedDate }} {{ metadata.feed.id }}