From 913dbab88d5d29f74468aeefec2d922a6eab4be7 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Sun, 28 Apr 2019 16:40:19 +0200 Subject: [PATCH] Fixed buggy format in jinja2 templates Jinja2 filter for "format" only accepts "%s" placeholders, but Pelican has long moved on to "{slug}" formatting: https://docs.getpelican.com/en/stable/settings.html#feed-settings --- alchemy/templates/include/xml_feeds.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/alchemy/templates/include/xml_feeds.html b/alchemy/templates/include/xml_feeds.html index 5a92153..d67adfa 100644 --- a/alchemy/templates/include/xml_feeds.html +++ b/alchemy/templates/include/xml_feeds.html @@ -13,14 +13,14 @@ href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}">{% endif %} {% if CATEGORY_FEED_ATOM and category %} {% endif %} + href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM.format(slug=category.slug) }}">{% endif %} {% if CATEGORY_FEED_RSS and category %} {% endif %} + href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS.format(slug=category.slug) }}">{% endif %} {% if TAG_FEED_ATOM and tag %} {% endif %} + href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM.format(slug=tag.slug) }}">{% endif %} {% if TAG_FEED_RSS and tag %} + href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS.format(slug=tag.slug) }}"> {% endif %}