mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 12:11:35 +01:00
fix: fix build error due to config change (#16)
This commit is contained in:
parent
968ba4178a
commit
6fc7951994
2 changed files with 7 additions and 6 deletions
|
|
@ -12,12 +12,12 @@ author = "st1020"
|
||||||
default_language = "en"
|
default_language = "en"
|
||||||
|
|
||||||
# When set to "true", a feed is automatically generated.
|
# 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.
|
# 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.
|
# 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.
|
# 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
|
# The taxonomies to be rendered for the site and their configuration of the default languages
|
||||||
# Example:
|
# Example:
|
||||||
|
|
|
||||||
|
|
@ -102,14 +102,15 @@
|
||||||
<!-- Feeds -->
|
<!-- Feeds -->
|
||||||
{% if config.generate_feed %}
|
{% if config.generate_feed %}
|
||||||
<!---->
|
<!---->
|
||||||
{% if config.feed_filename == "atom.xml" %}
|
{% if "atom.xml" in config.feed_filenames %}
|
||||||
<link
|
<link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
type="application/atom+xml"
|
type="application/atom+xml"
|
||||||
title="Atom"
|
title="Atom"
|
||||||
href="{{ get_url(path=`atom.xml`) }}"
|
href="{{ get_url(path=`atom.xml`) }}"
|
||||||
/>
|
/>
|
||||||
{% elif config.feed_filename == "rss.xml" %}
|
{% endif %}
|
||||||
|
{% if "rss.xml" in config.feed_filenames %}
|
||||||
<link
|
<link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
type="application/rss+xml"
|
type="application/rss+xml"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue