From dc92abb5066516c59f85acd4303ed56486aef3d1 Mon Sep 17 00:00:00 2001 From: Michel Loiseleur Date: Fri, 9 Jan 2026 15:32:52 +0100 Subject: [PATCH 1/5] fix(config)!: use product in material for clean build --- material/base.html | 18 +++++++++--------- material/partials/product-switcher.html | 14 +++++++------- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/material/base.html b/material/base.html index bba491c1d9d..9a55f0dd211 100644 --- a/material/base.html +++ b/material/base.html @@ -30,14 +30,14 @@ {% if config and config.theme and config.theme.favicon %} {% endif %} - {% if config.product == "proxy" %} + {% if config.theme.product == "proxy" %} - {% elif config.product == "enterprise" %} + {% elif config.theme.product == "enterprise" %} - {% elif config.product == "mesh" %} + {% elif config.theme.product == "mesh" %} {% endif %} - + {% endblock %} {% block htmltitle %} {% if page and page.meta and page.meta.title %} @@ -49,10 +49,10 @@ {% endif %} {% endblock %} {% block styles %} - + {% if config.theme.palette %} {% set palette = config.theme.palette %} - + {% if palette.primary %} {% import "partials/palette.html" as map %} {% set primary = map.primary( @@ -183,8 +183,8 @@

{{ page.title | default(config.site_name, true)}}

{% endblock %} {% block scripts %} - - + + {%- set translations = {} -%} {%- for key in [ "clipboard.copy", @@ -212,7 +212,7 @@

{{ page.title | default(config.site_name, true)}}

base: "{{ base_url }}", features: {{ config.theme.features or [] | tojson }}, search: Object.assign({ - worker: "{{ 'assets/javascripts/worker/search.1866c2a5.min.js' | url }}" + worker: "{{ 'assets/javascripts/worker/search.js' | url }}" }, typeof search !== "undefined" && search) }) diff --git a/material/partials/product-switcher.html b/material/partials/product-switcher.html index 344c4c89c5d..c825c5abefc 100644 --- a/material/partials/product-switcher.html +++ b/material/partials/product-switcher.html @@ -4,13 +4,13 @@