diff options
Diffstat (limited to 'layouts/partials/docs/languages.html')
-rw-r--r-- | layouts/partials/docs/languages.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/partials/docs/languages.html b/layouts/partials/docs/languages.html index 14e0e2c..4020275 100644 --- a/layouts/partials/docs/languages.html +++ b/layouts/partials/docs/languages.html @@ -1,7 +1,10 @@ <!-- Merge home and current page translations --> +{{ $bookTranslatedOnly := default false .Site.Params.BookTranslatedOnly }} {{ $translations := dict }} -{{ range .Site.Home.AllTranslations }} - {{ $translations = merge $translations (dict .Language.Lang .) }} +{{ if (eq $bookTranslatedOnly false ) }} + {{ range .Site.Home.AllTranslations }} + {{ $translations = merge $translations (dict .Language.Lang .) }} + {{ end }} {{ end }} {{ range .Translations }} {{ $translations = merge $translations (dict .Language.Lang .) }} |