diff options
author | jossemargt <jossemargt@gmail.com> | 2021-10-14 09:49:57 +0300 |
---|---|---|
committer | jossemargt <jossemargt@gmail.com> | 2021-10-14 09:49:57 +0300 |
commit | 080ce96f38441278401e9c3d28c15ab35e73ff79 (patch) | |
tree | 155070e6b123aac4f09c2f8eb53c58d33620338f | |
parent | 17d814d3fa46421e4c598d5048ca208ccb3b211e (diff) |
Fix nav-title URL when i18n is enable
Turns out when you enable i18n using diary theme, the link on the
"navigation title" always pointed to the site URL instead of the
language base url.
-rw-r--r-- | layouts/partials/mobile-header.html | 4 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/mobile-header.html b/layouts/partials/mobile-header.html index 61a582c..ad59cda 100644 --- a/layouts/partials/mobile-header.html +++ b/layouts/partials/mobile-header.html @@ -48,7 +48,7 @@ menu </i> </button> - <a id="navTitle" class="navbar-brand" href="{{.Site.BaseURL}}"> + <a id="navTitle" class="navbar-brand" href="{{ "" | absLangURL }}"> {{.Site.Title}} </a> {{ if not .Site.Params.disableDarkMode }} @@ -62,7 +62,7 @@ </nav> <div class="single-column-header-container" id="pageHead" v-bind:style="{ transform: 'translateZ(0px) translateY('+.3*scrollY+'px)', opacity: 1-navOpacity }"> - <a href="{{.Site.BaseURL}}"> + <a href="{{ "" | absLangURL }}"> <div class="single-column-header-title">{{.Site.Title}}</div> {{ with .Site.Params.subtitle }} <div class="single-column-header-subtitle">{{.}}</div> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index fe52094..153c56f 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,8 +1,8 @@ <div id="sideContainer" class="side-container"> {{ if eq .Title .Site.Title}} - <a class="a-block nav-head active" href="{{.Site.BaseURL}}"> + <a class="a-block nav-head active" href="{{ "" | absLangURL }}"> {{ else }} - <a class="a-block nav-head false" href="{{.Site.BaseURL}}"> + <a class="a-block nav-head false" href="{{ "" | absLangURL }}"> {{ end }} <div class="nav-title"> {{.Site.Title}} |