From 8ec09e5d1af4eddbcb73def6bed9f0d7248315dd Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Sun, 26 Apr 2020 08:32:52 -0400 Subject: [PATCH] Fall back to index if translation for the page doesn't exist (#313) Signed-off-by: Khosrow Moossavi --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 20e6c98..8f89bf5 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -17,7 +17,7 @@ {{ if .Site.IsMultiLingual }} {{ $node := . }} {{ .Scratch.Set "separator" true }} - {{ range .Translations }} + {{ range (default .Site.Home.AllTranslations .Translations) }} {{ if ne $.Site.Language .Language }} {{ if $node.Scratch.Get "separator" }}