mirror of https://github.com/luizdepra/hugo-coder.git

Khosrow Moossavi
26.32.2020 8ec09e5d1af4eddbcb73def6bed9f0d7248315dd
Fall back to index if translation for the page doesn't exist (#313)

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
1 files modified
2 ■■■ changed files
layouts/partials/header.html 2 ●●● patch | view | raw | blame | history
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" }}
              <li class="navigation-item menu-separator">