{% extends "base.html" %} {% block extrahead %} {#- The site has its own light and dark themes: tell the browser, so it does not darken the page itself, and ask Dark Reader to leave it alone. -#} {#- On a first visit nothing is stored yet, so the page would paint light until the theme script runs and then switch: a flash in dark mode. Store the option matching the system now, as the theme itself would on load, so the header script applies it before the content paints. -#} {% if config.theme.palette %} {% endif %} {% endblock %}