fix: use page instead of global
All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 8s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 10s
Blog Deployment / Test-Staging (push) Successful in 3s
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-24 11:14:56 +02:00
parent ef7792bafe
commit e7e98998aa

View File

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