{% import "_brand.html" as brand %} {# Sets the theme before any stylesheet paints (CS8): the saved browser choice (light or dark) wins, otherwise the device's colour scheme. Inline so it runs first. #} {% block title %}Spark{% endblock %} {{ brand.favicon_links() }} {% block head %}{% endblock %} {% set desktop_controls = not request.app.state.identity_attached|default(false) %}
{% block content %}{% endblock %}
{% if desktop_controls %} {% endif %} {% block scripts %}{% endblock %}