Skip to content

Commit 6fc7951

Browse files
authored
fix: fix build error due to config change (#16)
1 parent 968ba41 commit 6fc7951

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ author = "st1020"
1212
default_language = "en"
1313

1414
# When set to "true", a feed is automatically generated.
15-
generate_feed = true
15+
generate_feeds = true
1616

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.
1919
# 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"]
2121

2222
# The taxonomies to be rendered for the site and their configuration of the default languages
2323
# Example:

templates/partials/head.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,15 @@
102102
<!-- Feeds -->
103103
{% if config.generate_feed %}
104104
<!---->
105-
{% if config.feed_filename == "atom.xml" %}
105+
{% if "atom.xml" in config.feed_filenames %}
106106
<link
107107
rel="alternate"
108108
type="application/atom+xml"
109109
title="Atom"
110110
href="{{ get_url(path=`atom.xml`) }}"
111111
/>
112-
{% elif config.feed_filename == "rss.xml" %}
112+
{% endif %}
113+
{% if "rss.xml" in config.feed_filenames %}
113114
<link
114115
rel="alternate"
115116
type="application/rss+xml"

0 commit comments

Comments
 (0)