Skip to content

Commit 316b61c

Browse files
committed
Merge branch 'master' into uk-micromouse-sensors
2 parents a0cb0a3 + 551b6aa commit 316b61c

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.eleventy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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) {

navigation_and_indexes/rss.liquid

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,32 @@ permalink: /rss.xml
44
theme:
55
name: orionrobots
66
---
7-
{% capture BASE_PATH %}{{ site.production_url }}{% endcapture %}
8-
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ theme.name }}{% endcapture %}
7+
{%- capture BASE_PATH %}{{ site.production_url }}{% endcapture -%}
8+
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ theme.name }}{% endcapture -%}
99
<?xml version="1.0" encoding="UTF-8" ?>
1010
<rss version="2.0">
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>
2221
<title>{{ site.title }}</title>
2322
<link>{{ site.production_url }}</link>
2423
</image>
25-
26-
{% assign posts = collections.all | reverse | with_explicit_date %}
27-
{% for post in posts %}
24+
{%- assign posts = collections.all | reverse | with_explicit_date -%}
25+
{%- for post in posts -%}
2826
<item>
29-
<title>{{ post.title }}</title>
27+
<title>{{ post.data.title }}</title>
3028
<description>{{ post | excerpt | strip_html }}</description>
3129
<link>{{ site.production_url }}{{ post.url }}</link>
3230
<guid>{{ site.production_url }}{{ post.url }}</guid>
33-
<pubDate>{{ post.date }}</pubDate>
31+
<pubDate>{{ post.date | to_utc_string }}</pubDate>
3432
</item>
35-
{% endfor %}
36-
33+
{%- endfor -%}
3734
</channel>
3835
</rss>

0 commit comments

Comments
 (0)