diff --git a/config.toml b/config.toml index 7af0f3d..2a5b87d 100644 --- a/config.toml +++ b/config.toml @@ -5,6 +5,12 @@ title = "Zola Terminimal theme" # Sass compilation is required compile_sass = true +# The theme supports feeds (RSS and ATOM) +generate_feed = true + +# Use `rss.xml` for RSS feeds and `atom.xml` for ATOM. +feed_filename = "atom.xml" + # Optional: enable tags taxonomies = [ {name = "tags"} diff --git a/templates/index.html b/templates/index.html index 223c348..86cb0cd 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,7 +12,12 @@ {{ head_macros::head(config=config) }} {%- 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 %}