Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix build error due to config change #16

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ author = "st1020"
default_language = "en"

# When set to "true", a feed is automatically generated.
generate_feed = true
generate_feeds = true

# The filename to use for the feed. Used as the template filename, too.
# Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed.
# The filenames to use for the feeds. Used as the template filenames, too.
# Defaults to ["atom.xml"], which has a built-in template that renders an Atom 1.0 feed.
# There is also a built-in template "rss.xml" that renders an RSS 2.0 feed.
feed_filename = "atom.xml"
feed_filenames = ["atom.xml"]

# The taxonomies to be rendered for the site and their configuration of the default languages
# Example:
Expand Down
5 changes: 3 additions & 2 deletions templates/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,15 @@
<!-- Feeds -->
{% if config.generate_feed %}
<!---->
{% if config.feed_filename == "atom.xml" %}
{% if "atom.xml" in config.feed_filenames %}
<link
rel="alternate"
type="application/atom+xml"
title="Atom"
href="{{ get_url(path=`atom.xml`) }}"
/>
{% elif config.feed_filename == "rss.xml" %}
{% endif %}
{% if "rss.xml" in config.feed_filenames %}
<link
rel="alternate"
type="application/rss+xml"
Expand Down