{% set body_classes = body_class(['header-fixed', 'header-animated', 'header-transparent', 'sticky-footer']) %} {% set theme_default = theme_var('theme-mode') ?: 'auto' %} {% set accent = theme_var('accent-color') %} {% set accent_is_hex = accent and accent matches '/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/' %} {% set fa_enabled = theme_var('fontawesome.enabled') %} {% set fa_local = theme_var('fontawesome.local') %} {% use 'blocks/base.html.twig' %} {% block head deferred %} {% if page.title %}{{ page.title|e('html') }} | {% endif %}{{ site.title|e('html') }} {% include 'partials/metadata.html.twig' %} {# Preload the critical latin subsets so headings + body text render in-font on first paint #} {% if accent_is_hex %} {# User-configured accent: tint links, focus ring, and filled UI accents with the chosen hex #} {% endif %} {# Pre-paint theme bootstrap — blocks FOUC by setting data-theme synchronously #} {% endblock head %} {% block stylesheets %} {% do assets.addCss('theme://css/fonts.css', 100) %} {% do assets.addCss('theme://css/blades.min.css', 95) %} {% do assets.addCss('theme://css/theme.css', 90) %} {% if fa_enabled %} {% if fa_local %} {% do assets.addCss('theme://css/fontawesome/all.min.css', 85) %} {% else %} {% do assets.addCss('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css', 85) %} {% endif %} {% endif %} {% do assets.addCss('theme://css/custom.css', 80) %} {% endblock %} {% block javascripts %} {% do assets.addJs('theme://js/theme-toggle.js', {group:'head', priority: 100}) %} {% do assets.addJs('theme://js/site.js', {group:'bottom', priority: 100}) %} {% endblock %} {% block assets deferred %} {{ assets.css()|raw }} {{ assets.js()|raw }} {% endblock %}
{% block header %}
{% endblock %} {% block hero %}{% endblock %}
{% block body %}
{% block messages %} {% include 'partials/messages.html.twig' ignore missing %} {% endblock %} {{ block('content_surround') }}
{% endblock %}
{% block footer %} {% include 'partials/footer.html.twig' %} {% endblock %} {% block mobile %}
{% endblock %} {% block bottom %} {{ assets.js('bottom')|raw }} {% endblock %}