Merge pull request #19 from robofarmio/fix-multi-lang

Fixes multi-language support in header
This commit is contained in:
kimcc 2020-04-15 19:16:07 -05:00 committed by GitHub
commit 0596832043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -36,7 +36,7 @@
<p>Page {{ $paginator.PageNumber}} of {{ $paginator.TotalPages }}</p> <p>Page {{ $paginator.PageNumber}} of {{ $paginator.TotalPages }}</p>
<div class="paginator-group"> <div class="paginator-group">
{{ if $paginator.HasPrev }} {{ if $paginator.HasPrev }}
<a class="color-link" href="{{ $paginator.Prev.URL }}"> <a class="color-link" href="{{ $paginator.Prev.URL | relLangURL }}">
<svg width="13px" height="9px" viewBox="0 0 13 9" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink"> <svg width="13px" height="9px" viewBox="0 0 13 9" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink">
<g class="color-arrow" fill="#63BDA2" fill-rule="nonzero"> <g class="color-arrow" fill="#63BDA2" fill-rule="nonzero">
<polygon id="Path" points="1.75929935 4.50000282 5.3292523 7.62371165 4.6707477 8.37628835 0.240700645 4.49999718 4.67081049 0.623709205 5.32930951 1.37629079"></polygon> <polygon id="Path" points="1.75929935 4.50000282 5.3292523 7.62371165 4.6707477 8.37628835 0.240700645 4.49999718 4.67081049 0.623709205 5.32930951 1.37629079"></polygon>
@ -47,7 +47,7 @@
</a> </a>
{{ end }} {{ end }}
{{ if $paginator.HasNext }} {{ if $paginator.HasNext }}
<a class="color-link older" href="{{ $paginator.Next.URL }}"> <a class="color-link older" href="{{ $paginator.Next.URL | relLangURL }}">
Older Older
<svg width="13px" height="9px" viewBox="0 0 13 9" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink"> <svg width="13px" height="9px" viewBox="0 0 13 9" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink">
<g class="color-arrow" fill="#63BDA2" fill-rule="nonzero"> <g class="color-arrow" fill="#63BDA2" fill-rule="nonzero">
@ -61,4 +61,4 @@
</div> </div>
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}

View File

@ -1,5 +1,5 @@
<header> <header>
<div class="site-title"> <div class="site-title">
<a href="{{ "/" | relURL }}">{{ .Site.Title }}</a> <a href="{{ "/" | relLangURL }}">{{ .Site.Title }}</a>
</div> </div>
</header> </header>

View File

@ -3,9 +3,9 @@
{{ partial "header.html" . }} {{ partial "header.html" . }}
<div class="nav-menu"> <div class="nav-menu">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<a class="color-link nav-link" href="{{ .URL }}">{{ .Name }}</a> <a class="color-link nav-link" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
{{ end }} {{ end }}
<a class="color-link nav-link" href="{{ .Site.RSSLink }}" target="_blank" rel="noopener" type="application/rss+xml">RSS</a> <a class="color-link nav-link" href="{{ .Site.RSSLink }}" target="_blank" rel="noopener" type="application/rss+xml">RSS</a>
</div> </div>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
</nav> </nav>