Update language-switcher.html

This commit is contained in:
dongorgan
2023-11-12 11:56:34 +03:00
committed by GitHub
parent c5cd92fbae
commit 99c4d8f8a4

View File

@@ -2,7 +2,7 @@
{{ $class := .Class }}
{{ $context := .Context }}
{{ $pageLang := $context.Lang }}
{{ $base:= urls.Parse site.BaseURL }}
{{ $base:= urls.Parse site.Home.Permalink }}
{{ $siteLanguages := site.Home.AllTranslations }}
{{ $pageLink := replace (replace $context.RelPermalink (add $pageLang "/") "") $base.Path "/" }}