Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRise <8315221+AmazingRise@users.noreply.github.com>2021-12-04 17:30:08 +0300
committerGitHub <noreply@github.com>2021-12-04 17:30:08 +0300
commita5d67c7a3fceaa7d8cd5888971fab0883d0968ae (patch)
tree2ac6a4140f7d4382edcb0aafdd9299fbc2815baf
parente5ee3d9392d82f92cbf4f4cba8160f5c583f8754 (diff)
parent080ce96f38441278401e9c3d28c15ab35e73ff79 (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.html4
-rw-r--r--layouts/partials/sidebar.html4
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}}