Fall back to index if translation for the page doesn't exist (#313)

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
Khosrow Moossavi
2020-04-26 08:32:52 -04:00
committed by GitHub
parent c664951c54
commit 8ec09e5d1a

View File

@@ -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" }}
<li class="navigation-item menu-separator">