diff --git a/templates/partials/header.html b/templates/partials/header.html index 5645edd43..b008643d2 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -14,9 +14,25 @@ {% endif %} - {# Feed #} - + {# Feeds #} + {% if config.generate_feeds | default(value=config.generate_feed) %} + {% if config.feed_filenames %} + {# Zola 0.19 and newer #} + {% for feed in config.feed_filenames %} + {% if feed == "atom.xml" %} + + {% elif feed == "rss.xml" %} + + {% else %} + + {% endif %} + {% endfor %} + {% else %} + {# Older Zola versions #} + {% set feed_url = config.feed_filename | default(value="atom.xml") %} + + {% endif %} + {% endif %} {# CSS #} {# Load subset of glyphs for header. Avoids flashing issue in Firefox #}