Fix global RSS feed

This commit is contained in:
timvisee 2021-02-27 18:24:29 +01:00
parent 949204457a
commit 973d41b951
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172
3 changed files with 6 additions and 3 deletions

View File

@ -8,7 +8,10 @@ default_language = "en"
highlight_code = true
highlight_theme = "1337"
generate_rss = true
generate_feed = true
feed_filename = "rss.xml"
build_search_index = false
check_external_links = false

View File

@ -7,7 +7,7 @@
<generator>Zola</generator>
<language>{{ config.default_language }}</language>
<atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
<lastBuildDate>{{ last_build_date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
<lastBuildDate>{{ last_updated | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
{% for page in pages %}
<item>
<title>{{ page.title }}</title>

View File

@ -86,7 +86,7 @@
{%- endif -%}
{%- endblock js %}
{% if config.generate_rss -%}
{% if config.generate_feed -%}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") | safe }}">
{%- endif %}