File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ module.exports = function(eleventyConfig) {
119119 } ) ;
120120
121121 // Liquid filter to convert a date to a string
122+ eleventyConfig . addLiquidFilter ( "to_utc_string" , date => date . toUTCString ( ) ) ;
122123
123124 // Liquid filter for long date string
124125 eleventyConfig . addLiquidFilter ( "date_to_long_string" , function ( date ) {
Original file line number Diff line number Diff line change @@ -11,11 +11,10 @@ theme:
1111<channel >
1212 <title >{{ site .title }}</title >
1313 <description >{{ site .title }} - {{ site .tagline }}</description >
14- <link >{{ site .production_url }}{{ JB .rss_path }}</link >
1514 <link >{{ site .production_url }}</link >
1615 <language >en-gb</language >
17- <lastBuildDate >{{ now | date_to_long_string }}</lastBuildDate >
18- <pubDate >{{ time }}</pubDate >
16+ <lastBuildDate >{{ now | to_utc_string }}</lastBuildDate >
17+ <pubDate >{{ now | to_utc_string }}</pubDate >
1918 <ttl >1800</ttl >
2019 <image >
2120 <url >{{ ASSET_PATH }}/images/social-banner.jpg</url >
@@ -25,11 +24,11 @@ theme:
2524{%- assign posts = collections .all | reverse | with_explicit_date -%}
2625{%- for post in posts -%}
2726 <item >
28- <title >{{ post .title }}</title >
27+ <title >{{ post .data . title }}</title >
2928 <description >{{ post | excerpt | strip_html }}</description >
3029 <link >{{ site .production_url }}{{ post .url }}</link >
3130 <guid >{{ site .production_url }}{{ post .url }}</guid >
32- <pubDate >{{ post .date }}</pubDate >
31+ <pubDate >{{ post .date | to_utc_string }}</pubDate >
3332 </item >
3433{%- endfor -%}
3534</channel >
You can’t perform that action at this time.
0 commit comments