Use | relLangURL for the base url in the site-navigation (#277)

* Use | relLangURL for the base urlº

This way, when you click on the header it maintains you in the same language you previously selected.

* Use .Site.Home.RelPermalink as proposed by @regisphilibert
This commit is contained in:
Juan Manuel Servera 2020-06-03 15:49:56 +02:00 committed by GitHub
parent 624b79e7f6
commit 981e7a2cb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
<nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center">
<a href="{{ .Site.BaseURL }}" class="f3 fw2 hover-white no-underline white-90 dib">
<a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white no-underline white-90 dib">
{{ .Site.Title }}
</a>
<div class="flex-l items-center">