{% set theme_modes = ['light', 'dark'] %} {% include "partials/theme_prepaint.html" with context %} {% set page_url = config.site_url.rstrip('/') + '/' + current_page.replace('.md', '.html') if current_page and current_page != 'index.md' else config.site_url %} {{ title }} - {{ config.site_name }} {% if config.theme and config.theme.palette %} {% endif %} {#- Work out which top-level section the current page belongs to, once, so the article header can show it as a "kicker" label (the small category tag magazines print above a headline) without duplicating the nav-walk logic that also builds the sidebar below. -#} {%- set kicker = namespace(label='') -%} {% for item in nav %} {% for label, link in item.items() %} {% if link is not string %} {% for subitem in link %} {% for sublabel, sublink in subitem.items() %} {% if not sublink.startswith('http') and sublink == current_page %} {% set kicker.label = label %} {% endif %} {% endfor %} {% endfor %} {% elif not link.startswith('http') and link == current_page %} {% set kicker.label = label %} {% endif %} {% endfor %} {% endfor %}
{{ config.site_name }}
{% include "partials/theme_switcher.html" %}
{% if kicker.label %}

{{ kicker.label }}

{% endif %}

{{ title }}

{% block content %}{% endblock %}
{% if prev_page %} ← Previous {{ prev_page.title }} {% else %}{% endif %} {% if next_page %} Next → {{ next_page.title }} {% endif %}
{% include "partials/active_nav_script.html" %} {% set theme_switcher_modes = [ {"value": "light", "label": "Day", "swatch_bg": "#FAF7F2", "swatch_fg": "#C81E3A"}, {"value": "dark", "label": "Night", "swatch_bg": "#17171A", "swatch_fg": "#FF5C73"} ] %} {% include "partials/theme_switcher_script.html" with context %} {% include "partials/style_switcher.html" %} {% include "partials/style_switcher_script.html" %}