Skip to content

Commit a0c6897

Browse files
authored
[CI] Address Hugo deprecation warning: use hugo.IsMultilingual (#4962)
1 parent b011f3c commit a0c6897

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

layouts/partials/i18n/fallback-page.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{{/*
22

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.
3+
Returns the fallback page of this page, if it has one. A fallback page is a
4+
page in the default site language that has been mounted under this locale as a
5+
fallback when this locale is missing a translation.
76

87
*/ -}}
98

109
{{ $result := false -}}
1110

12-
{{ if and .Site.IsMultiLingual .File -}}
11+
{{ if and hugo.IsMultilingual .File -}}
1312
{{ $defaultLang := .Site.Sites.Default.Language.Lang -}}
1413

1514
{{ $resultsArray := where .Translations "Lang" $defaultLang -}}

0 commit comments

Comments
 (0)