From 0e7a5f40800d7a1d5a72d7c32cdb827c85d533fe Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Sat, 8 Mar 2025 07:56:45 +0100 Subject: [PATCH] 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. --- templates/feed.tera | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/feed.tera b/templates/feed.tera index 235361025..7adb07787 100644 --- a/templates/feed.tera +++ b/templates/feed.tera @@ -14,16 +14,16 @@ {% for post in posts %} - {{post.title}} - - {{post.published}} - {{post.updated}} - https://blog.rust-lang.org/{{blog.prefix}}{{post.url}} - {{post.contents}} + {{post.title | escape_hbs}} + + {{post.published | escape_hbs}} + {{post.updated | escape_hbs}} + https://blog.rust-lang.org/{{blog.prefix}}{{post.url | escape_hbs}} + {{post.contents | escape_hbs}} - {{post.author}} + {{post.author | escape_hbs}} - {% endfor %} + {%- endfor %}