diff --git a/README.md b/README.md index 3eeb6d5..979a3a1 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,7 @@ See the live demo (of the default configuration) here: https://pawroman.github.io/zola-theme-terminimal/ -Tested with Zola v0.19.2. - -Please note that earlier (and older) versions might not work because of breaking changes across Zola versions. +Tested with Zola v0.17.2. Please note that earlier versions might not work because of breaking changes across Zola versions. #### Fork disclaimer diff --git a/config.toml b/config.toml index b03451a..cfcceca 100644 --- a/config.toml +++ b/config.toml @@ -6,10 +6,10 @@ title = "Zola Terminimal theme" compile_sass = true # The theme supports feeds (RSS and ATOM) -generate_feeds = true +generate_feed = true # Use `rss.xml` for RSS feeds and `atom.xml` for ATOM. -feed_filenames = ["rss.xml", "atom.xml"] +feed_filename = "atom.xml" # Optional: enable tags taxonomies = [ diff --git a/templates/index.html b/templates/index.html index d2bf2b0..22f7c4c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -13,18 +13,14 @@ {%- block open_graph %}{{ head_macros::open_graph(config=config) }}{% endblock open_graph -%} - {%- if config.generate_feeds %} - {%- for feed in config.feed_filenames %} - {%- if feed is containing('atom') %} - - {%- endif %} - - {%- if feed is containing('rss') %} - - {%- endif %} - - {%- endfor %} - {%- endif -%} + {%- if config.generate_feed %} + {%- if "rss" in config.feed_filename %} + {% set feed_type = 'rss+xml' %} + {%- else %} + {% set feed_type = 'atom+xml' %} + {% endif -%} + + {% endif -%} {%- if config.extra.favicon %}