From b82e06dbe03c8bea8d3345857262e41ce0ec975d Mon Sep 17 00:00:00 2001 From: Marius Timmer Date: Tue, 19 Nov 2024 15:41:01 +0100 Subject: [PATCH 1/2] Bugfix: replaced outdated .Site.IsMultiLinual --- layouts/partials/widgets/languages.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/widgets/languages.html b/layouts/partials/widgets/languages.html index e54adb1e..607a0840 100644 --- a/layouts/partials/widgets/languages.html +++ b/layouts/partials/widgets/languages.html @@ -1,5 +1,5 @@ {{- $translations := .Site.Home.AllTranslations }} -{{- if and .Site.IsMultiLingual (gt (len $translations) 0) }} +{{- if and hugo.IsMultilingual (gt (len $translations) 0) }}

{{ T "languages_title" }}

@@ -17,4 +17,4 @@

{{ T "languages_title" }}

-{{- end }} \ No newline at end of file +{{- end }} From ccf93668726e0a58da31e100beeb0e716053fd57 Mon Sep 17 00:00:00 2001 From: Marius Timmer Date: Fri, 6 Dec 2024 15:21:17 +0100 Subject: [PATCH 2/2] Linting requires no new line at end of file --- layouts/partials/widgets/languages.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/widgets/languages.html b/layouts/partials/widgets/languages.html index 607a0840..3c20ab11 100644 --- a/layouts/partials/widgets/languages.html +++ b/layouts/partials/widgets/languages.html @@ -17,4 +17,4 @@

{{ T "languages_title" }}

-{{- end }} +{{- end }} \ No newline at end of file