diff --git a/.eleventy.js b/.eleventy.js index 5e63a179..85d0e797 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -119,6 +119,7 @@ module.exports = function(eleventyConfig) { }); // Liquid filter to convert a date to a string + eleventyConfig.addLiquidFilter("to_utc_string", date => date.toUTCString() ); // Liquid filter for long date string eleventyConfig.addLiquidFilter("date_to_long_string", function(date) { diff --git a/navigation_and_indexes/rss.liquid b/navigation_and_indexes/rss.liquid index 81a18a93..40175a81 100644 --- a/navigation_and_indexes/rss.liquid +++ b/navigation_and_indexes/rss.liquid @@ -4,35 +4,32 @@ permalink: /rss.xml theme: name: orionrobots --- -{% capture BASE_PATH %}{{ site.production_url }}{% endcapture %} -{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ theme.name }}{% endcapture %} +{%- capture BASE_PATH %}{{ site.production_url }}{% endcapture -%} +{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ theme.name }}{% endcapture -%} {{ site.title }} {{ site.title }} - {{ site.tagline }} - {{ site.production_url }}{{ JB.rss_path }} {{ site.production_url }} en-gb - {{ now | date_to_long_string }} - {{ time }} + {{ now | to_utc_string }} + {{ now | to_utc_string }} 1800 {{ ASSET_PATH }}/images/social-banner.jpg {{ site.title }} {{ site.production_url }} - -{% assign posts = collections.all | reverse | with_explicit_date %} -{% for post in posts %} +{%- assign posts = collections.all | reverse | with_explicit_date -%} +{%- for post in posts -%} - {{ post.title }} + {{ post.data.title }} {{ post | excerpt | strip_html }} {{ site.production_url }}{{ post.url }} {{ site.production_url }}{{ post.url }} - {{ post.date }} + {{ post.date | to_utc_string }} -{% endfor %} - +{%- endfor -%}