aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Raspopov <raspopov@cherubicsoft.com>2021-05-20 23:02:31 +0300
committerGitHub <noreply@github.com>2021-05-20 22:02:31 +0200
commit345cb5d94791c4fab628391150c664f4ee032da5 (patch)
treed03e4bcc3cd2e184e39576bb4c7b461e711bbf33
parent553d378db316994f465c0025975c2c78ef6dacb4 (diff)
Prefer existing and translated variant of home page (#342)
* Prefer existing and translated variant of home page as the site link in the menu header. * More compact "cond"-version of fix.
-rw-r--r--layouts/partials/docs/brand.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/docs/brand.html b/layouts/partials/docs/brand.html
index 3fab74b..08ec797 100644
--- a/layouts/partials/docs/brand.html
+++ b/layouts/partials/docs/brand.html
@@ -1,5 +1,5 @@
<h2 class="book-brand">
- <a href="{{ .Site.BaseURL | relLangURL }}">
+ <a href="{{ cond (not .Site.Home.File) .Sites.First.Home.RelPermalink .Site.Home.RelPermalink }}">
{{- with .Site.Params.BookLogo -}}
<img src="{{ . | relURL }}" alt="Logo" />
{{- end -}}