{% extends "base.html" %}
{% set _atlasdocs = config.extra.atlasdocs | default({}) %}
{# 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 _atlasdocs.announcement %}
{% set _type = _atlasdocs.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 = _atlasdocs.announcement_color | default(_type_color, true) %}
{{ _atlasdocs.announcement }}
{% endif %}
{% endblock %}
{% block styles %}
{{ super() }}
{% endblock %}
{% block extrahead %}
{{ super() }}
{% if config.theme.logo %}
{% endif %}
{% if page.meta is defined and "hero" in page.meta and page.meta.hero %}
{% endif %}
{% endblock %}
{% block scripts %}
{{ super() }}
{% if _atlasdocs.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 %}