diff --git a/config.toml b/config.toml index 8cd6993..1d69b47 100644 --- a/config.toml +++ b/config.toml @@ -7,8 +7,8 @@ output_dir = "public" compile_sass = true minify_html = true build_search_index = false # Keep this false, search is temporarily unsupported -generate_feed = true -feed_filename = "atom.xml" +generate_feeds = true +feed_filenames = ["atom.xml"] taxonomies = [ { name = "tags" }, { name = "categories" }, diff --git a/content/posts/_index.md b/content/posts/_index.md index a773606..7f48dad 100644 --- a/content/posts/_index.md +++ b/content/posts/_index.md @@ -5,7 +5,7 @@ sort_by = "date" template = "blog.html" page_template = "post.html" insert_anchor_links = "right" -generate_feed = true +generate_feeds = true [extra] lang = 'en' diff --git a/templates/_header.html b/templates/_header.html index 2a2e6d9..e8dc0c6 100644 --- a/templates/_header.html +++ b/templates/_header.html @@ -40,9 +40,9 @@ {% if blog_section_path is defined and section.path is starting_with(blog_section_path) %} {% set rss_icon = load_data(path="static/icon/rss.svg") %} {% if section.generate_feed -%} - {{ rss_icon | safe }} + {{ rss_icon | safe }} {% elif config.generate_feed -%} - {{ rss_icon | safe }} + {{ rss_icon | safe }} {% endif %} {% endif %} diff --git a/templates/home.html b/templates/home.html index 54da34f..722fbb6 100644 --- a/templates/home.html +++ b/templates/home.html @@ -70,7 +70,7 @@ {% if section.generate_feed -%} {{ rss_icon | safe }} {% elif config.generate_feed -%} - {{ rss_icon | safe }} + {{ rss_icon | safe }} {% endif %} {% for link in config.extra.links -%}