{% import "widgets.html" as widgets %}
{% set translations = section.translations | default(value=page.translations|default(value="")) %}
{# TAXONOMY: no lang on 10.1 #}
{# TAXONOMY: no section.title here #}
{% block title %}{{ section.title|default(value=taxonomy.name|default(value=config.extra.title|default(value=""))) }}{% endblock %}
{% if generate_rss %}
{% endif %}
{%- for stylesheet in config.extra.stylesheets %}
{%- endfor %}
{% block header %}
{# TAXONOMY PROBLEM (not needed with Zola > 10.1) need to check if lang exists, do not display anything otherwise #}
{% if lang %}
{% 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)) %}
{{ header.content | markdown | safe }}
{% elif config.extra.header != "disabled" %}
Welcome to water theme!
Please edit config.extra.header, or override the header block in your site templates.
{% endif %}
{% if translations %}{{ widgets::translations(translations=translations) }}{% endif %}
{% if config.extra.menu and config.extra.menu != "disabled" %}
{{ widgets::menu(path=config.extra.menu) }}
{% elif config.extra.menu != "disabled" %}
Point config.extra.menu to a Markdown page and you will have a navigation menu
{% endif %}
{% else %}
Your zola version does not support translations in taxonomy templates. Please upgrade.
{% endif %}
{% endblock header %}
{% 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) }}
{% else %}
{% if config.extra.home_title %}