all repos — zola-bearblog @ 32a21a70019f43034561cd14875dfe2b8316c0cc

Port of bear blog theme to zola

update feed config schema changed in https://github.com/getzola/zola/pull/2477 Fixes: https://codeberg.org/alanpearce/zola-bearblog/issues/35

Alan Pearce
commit

32a21a70019f43034561cd14875dfe2b8316c0cc

parent

731031b3fe2e4964120a615fe93349d268b46758

2 files changed, 6 insertions(+), 2 deletions(-)

changed files
M config.tomlconfig.toml
@@ -2,6 +2,8 @@ title = "Zola ʕ•ᴥ•ʔ Bear Blog"
base_url = "/" description = "A Zola-theme based on Bear Blog." +generate_feeds = true + # Whether to automatically compile all Sass files in the sass directory compile_sass = false
M templates/base.htmltemplates/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>