mirror of
https://github.com/D-Modem/brand.git
synced 2026-11-28 17:58:05 -08:00
pages/suite.yml is now the only list of the suite's core repositories. The bar of each site, the accent of each site and the cards of the home page come from it (pages/suite.py). The Sites workflow starts the Pages workflow of each site when the list or the theme changes on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRVCneJ5ZGYGYNLNk3Y
26 lines
1.2 KiB
HTML
26 lines
1.2 KiB
HTML
{#- The D-Modem sites' theme: Zensical's with the suite's bar on top and the
|
|
repository's colour from pages/suite.yml as its accent (extra.repo in mkdocs.yml). -#}
|
|
{% extends "base.html" %}
|
|
|
|
{% block extrahead %}
|
|
{#- the colour of each core repository (pages/suite.yml, as extra.suite);
|
|
the suite's own site, and a site not in the list, have the carrier green #}
|
|
{%- set ns = namespace(accent="#3dff9a") -%}
|
|
{%- for site in config.extra.suite or [] if site.name == config.extra.repo -%}
|
|
{%- set ns.accent = site.colour -%}
|
|
{%- endfor %}
|
|
<style>:root { --suite-accent: {{ ns.accent }}; }</style>
|
|
{%- if config.extra.repo == "D-Modem.github.io" %}
|
|
{#- the suite's own site: the header's edge striped in all six Books, like the mark #}
|
|
<style>.md-header { border-bottom: 4px solid transparent; border-image: linear-gradient(90deg,
|
|
#ff4d5e 0 16.66%, #ff8a3d 0 33.33%, #ffd23d 0 50%, #3ddc84 0 66.66%, #3d8bff 0 83.33%, #a66bff 0) 1; }</style>
|
|
{%- endif %}
|
|
<link rel="stylesheet" href="{{ 'assets/suite/d-modem.css' | url }}">
|
|
{{ super() }}
|
|
{% endblock %}
|
|
|
|
{% block header %}
|
|
{% include "partials/suite.html" %}
|
|
{{ super() }}
|
|
{% endblock %}
|