Skip to content

Commit 30d835d

Browse files
authored
Merge pull request #1505 from rust-lang/senekor/srtpvxvmlopo
Fix RSS feed
2 parents f66c0cd + 0e7a5f4 commit 30d835d

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)