{{/* Returns the language object of this page, taking fallback pages into
consideration. */ -}}

{{ $fallbackPage := partial "i18n/fallback-page.html" . -}}
{{ $lang := .Site.Language -}}
{{ with $fallbackPage -}}
  {{ $lang = .Language -}}
{{ end -}}
{{ return $lang -}}
