fix: save global
All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 7s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 9s
Blog Deployment / Test-Staging (push) Successful in 2s
Blog Deployment / Merge (push) Has been skipped
Blog Deployment / Deploy-Production (push) Has been skipped
Blog Deployment / Test-Production (push) Has been skipped
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Notify (push) Has been skipped

This commit is contained in:
2025-06-23 21:42:29 +00:00
parent 3add412ffe
commit e10b8da995

View File

@@ -37,6 +37,7 @@
</div>
</header>
{{- $global := . -}}
{{- with .Site.Menus.social -}}
<ol class="menu-social">
{{ range . }}
@@ -54,8 +55,8 @@
</a>
</li>
{{ end }}
{{- $currentLang := .Site.Language.Lang -}}
{{- range .Site.Home.AllTranslations -}}
{{- $currentLang := $global.Site.Language.Lang -}}
{{- range $global.Site.Home.AllTranslations }}
{{- if ne .Language.Lang $currentLang }}
<li>
<a href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">