Update language-switcher.html
This commit is contained in:
parent
c5cd92fbae
commit
99c4d8f8a4
@ -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 "/" }}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user