{#- Site-wide main layout: every page resolves Knotis content flags from zensical.toml plus optional knotis_content front matter. -#} {% extends "base.html" %} {% block styles %} {{ super() }} {%- set knotis_assets = config.extra.knotis_runtime_assets if config.extra.knotis_runtime_assets else {} %} {%- for path in knotis_assets.stylesheets | default([]) %} {%- endfor %} {%- for path in [ "stylesheets/knotis-theme.css", ] %} {%- endfor %} {% endblock %} {% block extrahead %} {{ super() }} {%- set site_content = config.extra.knotis.content if config.extra.knotis and config.extra.knotis.content else {} -%} {%- set styled_section_groups = site_content.styled_section_groups | default(true) -%} {% endblock %} {% block container %} {% include "partials/knotis-content-container.html" %} {% endblock %} {% block scripts %} {{ super() }} {%- set knotis_assets = config.extra.knotis_runtime_assets if config.extra.knotis_runtime_assets else {} %} {%- for path in knotis_assets.scripts | default([]) %} {%- endfor %} {%- for path in [ "javascripts/mathjax.js", "javascripts/glossary.js", ] %} {%- endfor %} {%- for path in knotis_assets.scripts_after_site | default([]) %} {%- endfor %} {% endblock %}