Browse Source

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
tags/2.6.0
Juan Manuel Servera 4 years ago
parent
commit
981e7a2cb2
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      layouts/partials/site-navigation.html

+ 1
- 1
layouts/partials/site-navigation.html View File

<nav class="pv3 ph3 ph4-ns" role="navigation"> <nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center"> <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 }} {{ .Site.Title }}
</a> </a>
<div class="flex-l items-center"> <div class="flex-l items-center">

Loading…
Cancel
Save