update feed config schema changed in https://github.com/getzola/zola/pull/2477 Fixes: https://codeberg.org/alanpearce/zola-bearblog/issues/35
1 file changed, 4 insertions(+), 2 deletions(-)
changed files
M templates/base.html → templates/base.html
@@ -10,9 +10,11 @@ {% include "favicon.html" ignore missing -%} <title>{%- block title %}{{ config.title }}{%- endblock %}</title> {% include "seo_tags.html" ignore missing -%} <meta name="referrer" content="strict-origin-when-cross-origin"> - {%- if config.generate_feed %} + {%- if config.generate_feeds %} {% block rss -%} - <link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="{{ config.title }}" href="{{ get_url(path=config.feed_filename) | safe }}"> + {%- for feed_filename in config.feed_filenames %} + <link rel="alternate" type={% if feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="{{ config.title }}" href="{{ get_url(path=feed_filename) | safe }}"> + {%- endfor -%} {%- endblock -%} {%- endif %} <style>