From 34d5647e833979a18c2c0aa628981a930c2fe882 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 8 Aug 2026 23:53:35 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix(feed):=20escape=20ampers?= =?UTF-8?q?ands=20in=20Atom=20feed=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit config.title | safe bypassed Tera's auto-escaping, so a bare & in the site title produced invalid XML. Route it through escape_xml first, matching the rest of this template. --- templates/atom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/atom.xml b/templates/atom.xml index 3e5b55c48..8b4498c11 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -47,7 +47,7 @@ {%- endif -%} - {{ config.title | striptags | safe }} + <title>{{ config.title | striptags | escape_xml | safe }} {%- if term %} - {{ term.name }} {%- elif section.title %} - {{ section.title }} {%- endif -%} From 90264002a8a8e6825e098e6f51954bb1eff94898 Mon Sep 17 00:00:00 2001 From: welpo <welpo@users.noreply.github.com> Date: Sun, 9 Aug 2026 00:05:27 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20fix(dates):=20use=20full=20m?= =?UTF-8?q?onth=20name=20in=20non-English=20long=20date=20fallback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The non-en_GB fallback in format_date used %b (abbreviated month) for both the short and long formats, so long dates only differed from short ones by day zero-padding. The en_GB fallback already uses %B for long dates, and config.toml documents %d %B %Y as the intended non-English default. Resolves #689 --- templates/macros/format_date.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/macros/format_date.html b/templates/macros/format_date.html index f747fd15d..2c7d266a1 100644 --- a/templates/macros/format_date.html +++ b/templates/macros/format_date.html @@ -52,7 +52,7 @@ {%- if short -%} {{ date | date(format="%-d %b %Y", locale=date_locale) }} {%- else -%} - {{ date | date(format="%d %b %Y", locale=date_locale) }} + {{ date | date(format="%d %B %Y", locale=date_locale) }} {%- endif -%} {%- endif -%}