From b84bfec85e8e0426ecc129bd4ed07481a5adcb7b Mon Sep 17 00:00:00 2001 From: 172673 <172673@muni.cz> Date: Mon, 21 Oct 2019 11:43:01 +0200 Subject: [PATCH] allow language selector to be disabled --- exampleSite/config.toml | 1 + layouts/partials/navigation.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9296d15..69a334a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,6 +8,7 @@ secondaryColor = "#f9f9f9" textColor = "#636363" textColorDark = "#242738" whiteColor = "#ffffff" +disableLanguageSwitchingButton = false [Languages] diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index 13db0c6..2571cb9 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -43,6 +43,7 @@ {{ end }} + {{- if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton)}} + {{ end }} \ No newline at end of file