From bef9f81f47a4977a1490a5df7d12561ac8bfe2ec Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Sun, 7 Jul 2024 14:25:15 -0700 Subject: [PATCH] fix: update rss published to pubDate This update ensures we are following RSS spec, more info: https://www.rssboard.org/rss-specification#ltpubdategtSubelementOfLtitemgt --- src/rss.njk | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/rss.njk b/src/rss.njk index 8d84eae..682c690 100644 --- a/src/rss.njk +++ b/src/rss.njk @@ -4,26 +4,25 @@ layout: null eleventyExcludeFromCollections: true excludeFromSitemap: true --- + - {{ meta.siteName }} - {{ meta.siteDescription }} - - - {{ meta.url }}/ - - {{ meta.author }} - - {% for post in collections.post %} - +{{ meta.siteName }} +{{ meta.siteDescription }} + + +{{ meta.url }}/ + +{{ meta.author }} + +{% for post in collections.post %} + {{ meta.url }}{{ post.url }} {{ post.data.title | escape }} - - {{ post.date }} - {%- for tag in post.data.tags %} - - {%- endfor %} + + {{ post.date }} + {%- for tag in post.data.tags %}{%- endfor %} {{ post.content | escape }} - - {% endfor %} + +{% endfor %}