Skip to content

Commit 0e7a5f4

Browse files
committed
Fix RSS feed
This was broken in the transition from Hanlebars to Tera. It was excluded from the snapshot tests, because it contains a non-deterministic timestamp.
1 parent f66c0cd commit 0e7a5f4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

templates/feed.tera

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414

1515
{% for post in posts %}
1616
<entry>
17-
<title>{{post.title}}</title>
18-
<link rel="alternate" href="https://blog.rust-lang.org/{{blog.prefix}}{{post.url}}" type="text/html" title="{{post.title}}" />
19-
<published>{{post.published}}</published>
20-
<updated>{{post.updated}}</updated>
21-
<id>https://blog.rust-lang.org/{{blog.prefix}}{{post.url}}</id>
22-
<content type="html" xml:base="https://blog.rust-lang.org/{{blog.prefix}}{{post.url}}">{{post.contents}}</content>
17+
<title>{{post.title | escape_hbs}}</title>
18+
<link rel="alternate" href="https://blog.rust-lang.org/{{blog.prefix}}{{post.url | escape_hbs}}" type="text/html" title="{{post.title | escape_hbs}}" />
19+
<published>{{post.published | escape_hbs}}</published>
20+
<updated>{{post.updated | escape_hbs}}</updated>
21+
<id>https://blog.rust-lang.org/{{blog.prefix}}{{post.url | escape_hbs}}</id>
22+
<content type="html" xml:base="https://blog.rust-lang.org/{{blog.prefix}}{{post.url | escape_hbs}}">{{post.contents | escape_hbs}}</content>
2323

2424
<author>
25-
<name>{{post.author}}</name>
25+
<name>{{post.author | escape_hbs}}</name>
2626
</author>
2727
</entry>
28-
{% endfor %}
28+
{%- endfor %}
2929
</feed>

0 commit comments

Comments
 (0)