diff --git a/exampleSite/content/basics/customization/_index.en.md b/exampleSite/content/basics/customization/_index.en.md
index b83ea2ded1..359090a058 100644
--- a/exampleSite/content/basics/customization/_index.en.md
+++ b/exampleSite/content/basics/customization/_index.en.md
@@ -168,7 +168,7 @@ Then, set the `themeVariant` value with the name of your custom theme file. That
### Multiple variants
-You can also set multiple variants. In this case, the first variant is the default choosen on first view and a theme switch will be shown in the menu footer.
+You can also set multiple variants. In this case, the first variant is the default choosen on first view and a variant switch will be shown in the menu footer.
```toml
[params]
diff --git a/exampleSite/content/basics/generator/_index.en.md b/exampleSite/content/basics/generator/_index.en.md
index 71106b98e9..d4d3d14b6d 100644
--- a/exampleSite/content/basics/generator/_index.en.md
+++ b/exampleSite/content/basics/generator/_index.en.md
@@ -13,16 +13,19 @@ The arrowed lines reflect how colors are inherited thru different parts of the t
To better understand this select the `neon` variant and modify the differnet heading colors. There, colors for the heading `h2`, `h3` and `h4` are explicitly set. `h5` is not set and inherits its value from `h4`. `h6` is also not set and inherits its value from `h5`.
+Once you've changed a color, the theme selector will show a "My custom variant" entry and your changes are stored. You can change pages and even close the browser without losing your changes.
+
Once you are satisfied, you can download the new variants file and install it in your site.
{{% notice note %}}
-You need to define at least one `themeVariant` in your `config.toml` to modify and download the styles.
-
This only works in modern browsers.
{{% /notice %}}
## Variant generator
+Download color variant
+Reset variant
+
Graph
Download color variant
diff --git a/exampleSite/content/basics/migration/_index.en.md b/exampleSite/content/basics/migration/_index.en.md
index fe9403dca8..cc267fe1cd 100644
--- a/exampleSite/content/basics/migration/_index.en.md
+++ b/exampleSite/content/basics/migration/_index.en.md
@@ -24,7 +24,7 @@ This document shows you what's new in the latest release. For a detailed list of
This change will only affect your installation if you've not set the `themeVariant` parameter in your `config.toml`. [If you still want to use the Learn color variant]({{%relref "basics/customization/#learn-variant" %}}), you have to explicitly set `themeVariant="learn"` in your `config.toml`.
- Note, that this will also affect your site if viewed with Internet Explorer 11 and can not be reconfigured as it does not support CSS variables.
+ Note, that this will also affect your site if viewed with Internet Explorer 11 but in this case it can not be reconfigured as Internet Explorer does not support CSS variables.
- **Change**: Due to a bug, that we couldn't fix in a general manner for color variants, we decided to remove `--MENU-SEARCH-BOX-ICONS-color`.
@@ -36,9 +36,9 @@ This document shows you what's new in the latest release. For a detailed list of
- **New**: To make the creation of new variants easier for you, we've added a new interactive [theme variant generator]({{%relref "basics/generator" %}}).
-- **New**: You can now configure multiple color variants in your `config.toml`. In this case, the first variant is the default chosen on first view and a theme switch will be shown in the menu footer. See the [documentation]({{%relref "basics/customization/#multiple-variants" %}}) for configuration.
+- **New**: You can now configure multiple color variants in your `config.toml`. In this case, the first variant is the default chosen on first view and a variant switch will be shown in the menu footer. See the [documentation]({{%relref "basics/customization/#multiple-variants" %}}) for configuration.
- Note, that the new theme switch will not work with Internet Explorer 11 as it does not support CSS variables.
+ Note, that the new variant switch will not work with Internet Explorer 11 as it does not support CSS variables.
## 2.9.0
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index b838c3b7a5..b028c459eb 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -52,26 +52,22 @@
{{- end }}
-
- {{- $showlangswitch := and .Site.IsMultiLingual (not .Site.Params.disableLanguageSwitchingButton) }}
- {{- $themevariants := slice | append .Site.Params.themeVariant }}
- {{- $showthemeswitch := gt (int (len $themevariants)) 1 }}
+ {{- $siteLanguages := .Site.Languages }}
+ {{- $showlangswitch := and .Site.IsMultiLingual (not .Site.Params.disableLanguageSwitchingButton) (gt (int (len $siteLanguages)) 1) }}
+ {{- $themevariants := slice | append (.Site.Params.themeVariant | default "relearn-light" ) }}
+ {{- $showvariantswitch := gt (int (len $themevariants)) 1 }}
{{- $footer := partial "menu-footer.html" . }}
{{- $showfooter := not (eq 0 (int (len ($footer | plainify)))) }}
- {{- if or $showlangswitch $showvisitedlinks $showfooter }}
-
- {{- end }}
- {{- if or $showlangswitch $showthemeswitch $showvisitedlinks }}
-