modified language switcher
This commit is contained in:
parent
3cc5995449
commit
cef1b8593a
@ -4,7 +4,7 @@
|
||||
{{ $pageLang := $context.Lang }}
|
||||
{{ $base:= urls.Parse site.BaseURL }}
|
||||
{{ $siteLanguages := site.Home.AllTranslations }}
|
||||
{{ $pageLink := replace (replace (replace $context.RelPermalink $pageLang "") "//" "/") $base.Path "/" }}
|
||||
{{ $pageLink := replace (replace $context.RelPermalink (add $pageLang "/") "") $base.Path "/" }}
|
||||
|
||||
{{ if $context.IsTranslated }}
|
||||
<select class="{{ $class }}" onchange="location = this.value">
|
||||
|
Loading…
Reference in New Issue
Block a user