Fix Page.Url

This commit is contained in:
TheJoKlLa 2022-05-21 14:14:23 +00:00
parent dcca2635af
commit bbcb687ff0
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
{{ if .Site.Home.AllTranslations}} {{ if .Site.Home.AllTranslations}}
<ul class="lang"> <ul class="lang">
{{ range $.Site.Home.AllTranslations }} {{ range $.Site.Home.AllTranslations }}
<li><a href="{{ replace $.Page.URL $.Page.Language.Lang .Language.Lang}}">{{ .Language.LanguageName }}</a></li> <li><a href="{{ replace $.Params.url $.Page.Language.Lang .Language.Lang}}">{{ .Language.LanguageName }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}

View File

@ -3,7 +3,7 @@ license = "MIT"
licenselink = "" licenselink = ""
description = "Theme for the FabInfra Team" description = "Theme for the FabInfra Team"
homepage = "https://gitlab.com/fabinfra/fabinfra-theme" homepage = "https://gitlab.com/fabinfra/fabinfra-theme"
tags = [responsive, nojs] tags = ["responsive", "nojs"]
features = [] features = []
min_version = "0.35" min_version = "0.35"