Replace .Site.IsMultiLingual with hugo.IsMultilingual

This commit is contained in:
Jonathan Neidel
2024-08-25 13:05:20 +02:00
parent 6cbc0ccd63
commit 8fd3cfb13d
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<nav class="pb-4 text-base font-medium text-neutral-500 dark:text-neutral-400"> <nav class="pb-4 text-base font-medium text-neutral-500 dark:text-neutral-400">
<ul class="flex list-none flex-col sm:flex-row"> <ul class="flex list-none flex-col sm:flex-row">
{{ range .Site.Menus.footer }} {{ range .Site.Menus.footer }}
{{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }} {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not hugo.IsMultilingual)) }}
{{ continue }} {{ continue }}
{{ end }} {{ end }}
<li class="group mb-1 text-end sm:mb-0 sm:me-7 sm:last:me-0"> <li class="group mb-1 text-end sm:mb-0 sm:me-7 sm:last:me-0">
+1 -1
View File
@@ -9,7 +9,7 @@
<ul class="flex list-none flex-col text-end sm:flex-row"> <ul class="flex list-none flex-col text-end sm:flex-row">
{{ if .Site.Menus.main }} {{ if .Site.Menus.main }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }} {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not hugo.IsMultilingual)) }}
{{ continue }} {{ continue }}
{{ end }} {{ end }}
<li class="group mb-1 sm:mb-0 sm:me-7 sm:last:me-0.5"> <li class="group mb-1 sm:mb-0 sm:me-7 sm:last:me-0.5">
+1 -1
View File
@@ -25,7 +25,7 @@
</li> </li>
{{ if .Site.Menus.main }} {{ if .Site.Menus.main }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }} {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not hugo.IsMultilingual)) }}
{{ continue }} {{ continue }}
{{ end }} {{ end }}
<li class="group mb-1"> <li class="group mb-1">
+2 -2
View File
@@ -25,7 +25,7 @@
</li> </li>
{{ if .Site.Menus.main }} {{ if .Site.Menus.main }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }} {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not hugo.IsMultilingual)) }}
{{ continue }} {{ continue }}
{{ end }} {{ end }}
<li class="group mb-1"> <li class="group mb-1">
@@ -130,7 +130,7 @@
<ul class="hidden list-none flex-row text-end sm:flex"> <ul class="hidden list-none flex-row text-end sm:flex">
{{ if .Site.Menus.main }} {{ if .Site.Menus.main }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }} {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not hugo.IsMultilingual)) }}
{{ continue }} {{ continue }}
{{ end }} {{ end }}
<li class="group mb-1 sm:mb-0 sm:me-7 sm:last:me-0"> <li class="group mb-1 sm:mb-0 sm:me-7 sm:last:me-0">
+1 -1
View File
@@ -9,7 +9,7 @@
{{ with page }} {{ with page }}
{{ if .IsTranslated }} {{ if .IsTranslated }}
{{ $currentLang := .Page.Lang }} {{ $currentLang := .Page.Lang }}
{{ if site.IsMultiLingual }} {{ if hugo.IsMultilingual }}
<div class="group relative"> <div class="group relative">
<button <button
class="group-dark:hover:text-primary-400 flex w-full items-center justify-end transition-colors group-hover:text-primary-600" class="group-dark:hover:text-primary-400 flex w-full items-center justify-end transition-colors group-hover:text-primary-600"