{# Dark-mode FOUC prevention: read localStorage before paint, set the class on . Has to stay inline because the bundled app.js is `defer`red — runs after layout. The CSP nonce keeps this script eligible while `'unsafe-inline'` is dropped (F24). #} {% block body %} {% if current_user %} {% include 'partials/topnav.twig' %}
{% include 'partials/sidebar.twig' %}
{% include 'partials/flash.twig' %} {% block content %}{% endblock %}
{% else %}
{% include 'partials/flash.twig' %} {% block guest_content %}{% endblock %}
{% endif %} {% endblock %}