From 671e8994072eed7dfef2f71966b45c4b9fdbd500 Mon Sep 17 00:00:00 2001 From: southerntofu Date: Thu, 23 Apr 2020 00:04:53 +0200 Subject: [PATCH] Make sure taxonomies work on Zola 10.1 --- templates/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/index.html b/templates/index.html index 07da137..6be140b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,11 +1,9 @@ {% import "widgets.html" as widgets %} {% set translations = section.translations | default(value=page.translations|default(value="")) %} - -{##} - +{# TAXONOMY: no lang on 10.1 #} + - {# - Don't forget taxonomy titles #} + {# TAXONOMY: no section.title here #} {% block title %}{{ section.title|default(value=taxonomy.name) }}{% endblock %} {% if generate_rss %} {% endif %} @@ -18,7 +16,8 @@
{% block header %} - {% if config.extra.header and config.extra.header != "disabled" %} + {# TAXONOMY PROBLEM (not needed with Zola > 10.1) please override me or i will crash your site #} + {% if config.extra.header and config.extra.header != "disabled" %}{# TAXONOMY: no lang here #} {% set header = get_page(path=widgets::i18n_path(path=config.extra.header, lang=lang)) %} {{ header.content | markdown | safe }} {% elif config.extra.header != "disabled" %} @@ -35,6 +34,7 @@
{% block main %} + {# TAXONOMY: Please override me or i will crash your site #} {% if config.extra.home_section %} {% set home_section = config.extra.home_section ~ "/_index.md" %} {{ widgets::section(cur_section=get_section(path=widgets::i18n_path(path=home_section)), full_articles=config.extra.home_fullarticles, title=config.extra.home_title) }} @@ -46,7 +46,7 @@