{%- for path in config.extra_css %} {%- endfor %}

{{ config.site_name }}

{# add page content #} {{ page.content }} {% if page.is_homepage %} {# add global contents on the root page #}

Contents

{% for target in nav %} {% if target.is_section %}

{{ target.title }}

{% include "partials/contents_block.html" %} {% elif target != page %}

{{ target.title }}

{% endif %} {% endfor %} {% elif page.parent and page.parent.is_section and page.parent.children[0] == page %} {# add local contents on section home pages #} {% set target = page.parent %}

Contents

{% include "partials/contents_block.html" %} {% endif %} {# add a back arrow if there's a parent to go back to #} {% set backlink_target = page.parent %} {% if backlink_target and backlink_target.is_section and page == backlink_target.children[0] %} {% set backlink_target = backlink_target.parent %} {% endif %} {% if backlink_target %} 🡐 {{ backlink_target.title }} {% endif %}
{%- for script in config.extra_javascript %} {{ script | script_tag }} {%- endfor %}