diff options
author | Nikolay Raspopov <raspopov@cherubicsoft.com> | 2021-05-20 23:02:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 22:02:31 +0200 |
commit | 345cb5d94791c4fab628391150c664f4ee032da5 (patch) | |
tree | d03e4bcc3cd2e184e39576bb4c7b461e711bbf33 /layouts/partials/docs | |
parent | 553d378db316994f465c0025975c2c78ef6dacb4 (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.
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r-- | layouts/partials/docs/brand.html | 2 |
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 -}} |