update breadcrumb and lang-switcher

This commit is contained in:
somrat sorkar
2023-06-04 15:18:31 +06:00
parent 76ed462707
commit 3cc5995449
2 changed files with 18 additions and 12 deletions

View File

@@ -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 (replace $context.RelPermalink $pageLang "") "//" "/") $base.Path "/" }}
{{ if $context.IsTranslated }}
<select class="{{ $class }}" onchange="location = this.value">