{% extends "base.html" %} {# Bifrost Zensical Theme A packaged Zensical theme that extends Zensical's built-in (Material-derived) theme and applies Intility's Bifrost design system. Theme-sync behaviour lives in `javascripts/bifrost-theme.js`, loaded via the `scripts` block below since a theme cannot set `extra_javascript` itself. #} {% block htmltitle %} {% if page.title and not page.is_homepage %}{{ page.title | striptags }} - {% endif %}{{ config.site_name }} {% endblock %} {# Demote Zensical's built-in stylesheet into a low-priority cascade layer. bifrost-layers.css declares the layer order (material < bifrost-framework < bifrost-overrides) and re-imports the built-in main/palette stylesheets into the `material` layer, so our overrides win without a specificity war. It is a static file (not generated) because the hashed filenames are hardcoded in Zensical's own `base.html`, not discovered at build time; a pinned Zensical version keeps them in sync (see tests/test_theme.py). It is served as a real so it survives instant navigation, and must precede bifrost.css so the layer order is declared first. #} {% block styles %} {% include "partials/icons.html" %} {% endblock %} {# Stamp Bifrost's .bf-content on the article so the framework styles Markdown output (headings, paragraphs, lists, links) directly. Zensical hardcodes the article's class list, so the whole container block is copied from base.html. #} {% block container %}
{% if "navigation.path" in features %} {% include "partials/path.html" %} {% endif %}
{% block content %} {% include "partials/content.html" %} {% endblock %}
{% endblock %} {% block extrahead %} {%- if config.extra.version -%} {%- endif -%} {%- if config.extra.primary -%} {%- endif -%} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}