From faa2f96a1046b33ae922f2f180f0ae6a16a4aa1d Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Fri, 10 May 2024 05:06:32 -0700 Subject: [PATCH] Remove examples of LanguageCode fallback With v0.112.0 and later the .Language.LanguageCode methods on Page and Site fallback to .Language.Lang, so falling back in a template is superfluous. --- content/en/methods/page/AllTranslations.md | 6 +++--- content/en/methods/page/Translations.md | 6 +++--- content/en/methods/site/Language.md | 10 ++-------- content/en/templates/introduction.md | 4 ++-- 4 files changed, 10 insertions(+), 16 deletions(-) diff --git a/content/en/methods/page/AllTranslations.md b/content/en/methods/page/AllTranslations.md index 7fb996622a..51d82d4f94 100644 --- a/content/en/methods/page/AllTranslations.md +++ b/content/en/methods/page/AllTranslations.md @@ -63,9 +63,9 @@ And this template: {{ with .AllTranslations }} {{ end }} diff --git a/content/en/methods/page/Translations.md b/content/en/methods/page/Translations.md index ae853fe243..597a9aeb60 100644 --- a/content/en/methods/page/Translations.md +++ b/content/en/methods/page/Translations.md @@ -63,9 +63,9 @@ And this template: {{ with .Translations }} {{ end }} diff --git a/content/en/methods/site/Language.md b/content/en/methods/site/Language.md index 9ef70c4fb9..5dd07ec4fc 100644 --- a/content/en/methods/site/Language.md +++ b/content/en/methods/site/Language.md @@ -68,16 +68,10 @@ Some of the methods above are commonly used in a base template as attributes for ```go-html-template