{% import "widgets.html" as widgets %} {% set translations = section.translations | default(value=page.translations|default(value="")) %} {# Don't forget taxonomy titles #} {% block title %}{{ section.title|default(value=taxonomy.name) }}{% endblock %} {% if generate_rss %} {% endif %} {%- for stylesheet in config.extra.stylesheets %} {%- endfor %}
{% block header %} {% if config.extra.header and config.extra.header != "disabled" %} {% set header = get_page(path=widgets::i18n_path(path=config.extra.header, lang=lang)) %} {{ 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="_common/menu.md") }} {% elif config.extra.menu != "disabled" %}

Point config.extra.menu to a Markdown page and you will have a navigation menu

{% endif %} {% endblock header %}
{% block main %} {% 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 %}

{{ section.title }}

{% endif %} {{ section.content | markdown | safe }} {% endif %} {% endblock %}