mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-21 19:09:29 +00:00
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.
This commit is contained in:
parent
553d378db3
commit
345cb5d947
@ -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 -}}
|
||||
|
Loading…
Reference in New Issue
Block a user