From 45fe17046704e249be3b5fbb94a3355d21149d4d Mon Sep 17 00:00:00 2001 From: welpo Date: Sun, 16 Feb 2025 09:28:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(feed):=20styling=20now=20wor?= =?UTF-8?q?ks=20in=20all=20website=20paths?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The feed's stylesheet now uses the base URL from Zola's configuration, ensuring correct stylesheet loading in all contexts (root path, subdirectories, and subdomains). Previously, the stylesheet URLs could break when feeds were in subdirectories. --- static/feed_style.xsl | 9 ++------- templates/atom.xml | 1 + 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/static/feed_style.xsl b/static/feed_style.xsl index 1a2a509..1e413bb 100644 --- a/static/feed_style.xsl +++ b/static/feed_style.xsl @@ -14,13 +14,8 @@ - - - - - - - + + diff --git a/templates/atom.xml b/templates/atom.xml index 0f50753..0546214 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -9,6 +9,7 @@ + {{ config.base_url }} {{ config.extra.separator | default(value="•") }}