Skip to content

Commit

Permalink
Prefer existing and translated variant of home page (alex-shpak#342)
Browse files Browse the repository at this point in the history
* Prefer existing and translated variant of home page as the site link in the menu header.
* More compact "cond"-version of fix.
  • Loading branch information
raspopov authored May 20, 2021
1 parent 553d378 commit 345cb5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/docs/brand.html
Original file line number Diff line number Diff line change
@@ -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 -}}
Expand Down

0 comments on commit 345cb5d

Please sign in to comment.