{#- Override Material's logo partial to render BOTH light and dark variants so the header / sidebar logo switches with the color scheme. Material 9.x ignores the per-palette `logo:` setting in mkdocs.yml and only reads `config.theme.logo`, so we emit two tags and rely on Material's built-in `[src$="#only-dark"]{display:none}` (light mode hides the dark variant) plus a custom `[src$="#only-light"]` rule in extra.css that does the same in dark mode. -#} {% if config.theme.logo %} logo logo {% else %} {% set icon = config.theme.icon.logo or "material/library" %} {% include ".icons/" ~ icon ~ ".svg" %} {% endif %}