fix: appropriate back button and menu links for multi-language site (#386)

This commit is contained in:
MikDal002
2021-10-16 10:56:55 +02:00
committed by GitHub
parent b3088be62d
commit d04b3a8771
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -29,7 +29,7 @@
</figure>
{{ end }}
{{ end }}
<h1 class="site-name"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
<h1 class="site-name"><a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Title }}</a></h1>
<h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2>
</header>
@@ -39,7 +39,7 @@
{{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
<li {{ if $active }} class='current' {{ end }}>
<a href='{{ .URL }}' {{ if eq .Params.newTab true }}target="_blank"{{ end }}>
<a href='{{ .URL | relLangURL }}' {{ if eq .Params.newTab true }}target="_blank"{{ end }}>
{{ if .Pre }}
{{ partial "helper/icon" .Pre }}
{{ end }}