We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b011f3c commit a0c6897Copy full SHA for a0c6897
layouts/partials/i18n/fallback-page.html
@@ -1,15 +1,14 @@
1
{{/*
2
3
- Returns the fallback page of this page, if it has one.
4
- A fallback page, is a page in the default site language
5
- that has been mounted under this locale as a fallback
6
- when this locale is missing a translation.
+ Returns the fallback page of this page, if it has one. A fallback page is a
+ page in the default site language that has been mounted under this locale as a
+ fallback when this locale is missing a translation.
7
8
*/ -}}
9
10
{{ $result := false -}}
11
12
-{{ if and .Site.IsMultiLingual .File -}}
+{{ if and hugo.IsMultilingual .File -}}
13
{{ $defaultLang := .Site.Sites.Default.Language.Lang -}}
14
15
{{ $resultsArray := where .Translations "Lang" $defaultLang -}}
0 commit comments