File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ author = "st1020"
12
12
default_language = " en"
13
13
14
14
# When set to "true", a feed is automatically generated.
15
- generate_feed = true
15
+ generate_feeds = true
16
16
17
- # The filename to use for the feed . Used as the template filename , too.
18
- # Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed.
17
+ # The filenames to use for the feeds . Used as the template filenames , too.
18
+ # Defaults to [ "atom.xml"] , which has a built-in template that renders an Atom 1.0 feed.
19
19
# There is also a built-in template "rss.xml" that renders an RSS 2.0 feed.
20
- feed_filename = " atom.xml"
20
+ feed_filenames = [ " atom.xml" ]
21
21
22
22
# The taxonomies to be rendered for the site and their configuration of the default languages
23
23
# Example:
Original file line number Diff line number Diff line change 102
102
<!-- Feeds -->
103
103
{% if config.generate_feed %}
104
104
<!---->
105
- {% if config.feed_filename == "atom.xml" %}
105
+ {% if "atom.xml" in config.feed_filenames %}
106
106
< link
107
107
rel ="alternate "
108
108
type ="application/atom+xml "
109
109
title ="Atom "
110
110
href ="{{ get_url(path=`atom.xml`) }} "
111
111
/>
112
- {% elif config.feed_filename == "rss.xml" %}
112
+ {% endif %}
113
+ {% if "rss.xml" in config.feed_filenames %}
113
114
< link
114
115
rel ="alternate "
115
116
type ="application/rss+xml "
You can’t perform that action at this time.
0 commit comments