From 72721bb0259e03553aabd7a0484fec5b23cc7ef6 Mon Sep 17 00:00:00 2001 From: Jonny Gerig Meyer Date: Tue, 4 Apr 2023 17:56:36 -0400 Subject: [PATCH] Serve atom feed at /feed and /feed.xml --- source/feed.liquid | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source/feed.liquid b/source/feed.liquid index de63e67..80ad849 100644 --- a/source/feed.liquid +++ b/source/feed.liquid @@ -1,5 +1,12 @@ --- -permalink: 'feed.xml' +pagination: + data: urls + alias: url + size: 1 +urls: + - 'feed.xml' + - 'feed' +permalink: '{{ url }}' eleventyExcludeFromCollections: true --- @@ -7,7 +14,7 @@ eleventyExcludeFromCollections: true Sass Blog {{ '/blog' | absoluteUrl: site.url }} - + {{ collections.blog | getNewestCollectionItemDate | dateToRfc3339 }} {%- assign posts = collections.blog | reverse -%} {%- for post in posts limit:6 %} @@ -17,6 +24,7 @@ eleventyExcludeFromCollections: true {{ absolutePostUrl }} {{ post.date | dateToRfc3339 }} + {{ post.date | dateToRfc3339 }} {{ post.data.author }}