{% extends "base.html" %} {# announcement_type (optional): normal (default, follows the site's own primary palette color) | critical | important (both red) | action (green — use when the reader needs to do something, e.g. nominations) | routine (grey — surveys, routine notices). No other keywords are recognized — anything else falls through to normal. announcement_color (optional): any atlas palette color name (same vocabulary as zensical.toml's primary/accent), overrides announcement_type when both are set. #} {% block announce %} {% if config.extra.announcement %} {% set _type = config.extra.announcement_type | default("normal", true) %} {% if _type == "critical" or _type == "important" %} {% set _type_color = "red" %} {% elif _type == "action" %} {% set _type_color = "green" %} {% elif _type == "routine" %} {% set _type_color = "grey" %} {% else %} {% set _type_color = "" %} {% endif %} {% set _color = config.extra.announcement_color | default(_type_color, true) %} {{ config.extra.announcement }} {% endif %} {% endblock %} {% block styles %} {{ super() }} {% endblock %} {% block extrahead %} {{ super() }} {# Preload the primary (non-italic) webfonts so the swap from the fallback stack to Open Sans/Roboto Mono happens as early as possible — shortens the visible font-size "flash" caused by font-display: swap. #} {% if config.theme.logo %} {% endif %} {% endblock %} {% block scripts %} {{ super() }} {% if config.extra.nav_disabled | default([]) %} {% endif %} {% if "atlas.mathjax" in features %} {% endif %} {% if "atlas.mermaid" in features %} {% endif %} {% endblock %} {% block hero %} {% if page.meta is defined and "hero" in page.meta and page.meta.hero %} {% set _heroheight = page.meta.heroheight if "heroheight" in page.meta else "" %}
{% endif %} {% endblock %}