From 508f8ed8415bb8cd7ac15629f1778c697e5d4b5a Mon Sep 17 00:00:00 2001 From: Matthew McKinnon Date: Wed, 3 Sep 2025 21:10:01 +1000 Subject: [PATCH] fix: update layouts to add hugo.IsMultilingual - Update layouts/partials/language-selector.html to add hugo.IsMultilingual for multilanguage support to hide drop down menu - Update layours/partials/sidebar.html to add hugo.IsMultilingual to hide language icon. --- layouts/partials/language-selector.html | 24 +++++++++++++----------- layouts/partials/sidebar.html | 17 ++++++++++------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/layouts/partials/language-selector.html b/layouts/partials/language-selector.html index 67040fb..c53467a 100644 --- a/layouts/partials/language-selector.html +++ b/layouts/partials/language-selector.html @@ -1,11 +1,13 @@ -
- -
\ No newline at end of file +{{ if hugo.IsMultilingual }} +
+ +
+{{ end }} \ No newline at end of file diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 75cb578..3a05448 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -34,12 +34,15 @@ {{ end }} - + + {{ if hugo.IsMultilingual }} + + {{ end }} @@ -57,7 +60,7 @@ {{ range .Site.Params.social.links }} {{ $url := "" }} {{ $rel := "" }} - + {{ if eq .type "github" }} {{ $url = printf "https://github.com/%s" .id }} {{ else if eq .type "twitter" }}