diff options
author | Rise <8315221+AmazingRise@users.noreply.github.com> | 2021-12-04 17:30:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-04 17:30:08 +0300 |
commit | a5d67c7a3fceaa7d8cd5888971fab0883d0968ae (patch) | |
tree | 2ac6a4140f7d4382edcb0aafdd9299fbc2815baf | |
parent | e5ee3d9392d82f92cbf4f4cba8160f5c583f8754 (diff) | |
parent | 080ce96f38441278401e9c3d28c15ab35e73ff79 (diff) |
Merge pull request #106 from jossemarGT/feature/fix-url-brand-area-i18n
Fix nav-title URL when i18n is enable
-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}} |