From fe10d9899dbaa5f885cbc59be62199bdf7c9dd34 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Wed, 22 Jan 2025 08:04:36 -0800 Subject: [PATCH] Remove expired new-in labels --- content/en/content-management/multilingual.md | 46 +++++++++++-------- content/en/functions/hugo/WorkingDir.md | 2 - content/en/functions/math/Abs.md | 2 - content/en/functions/urls/JoinPath.md | 2 - .../en/getting-started/configuration-build.md | 2 - 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/content/en/content-management/multilingual.md b/content/en/content-management/multilingual.md index e355d7eff..b37fbf94a 100644 --- a/content/en/content-management/multilingual.md +++ b/content/en/content-management/multilingual.md @@ -109,34 +109,42 @@ weight [RFC 5646]: https://datatracker.ietf.org/doc/html/rfc5646#section-2.1 [translating by file name]: #translation-by-file-name -### Changes in Hugo 0.112.0 +### Site parameters -{{< new-in 0.112.0 >}} - -In Hugo `v0.112.0` we consolidated all configuration options, and improved how the languages and their parameters are merged with the main configuration. But while testing this on Hugo sites out there, we received some error reports and reverted some of the changes in favor of deprecation warnings: - -1. `site.Language.Params` is deprecated. Use `site.Params` directly. -1. Adding custom parameters to the top level language configuration is deprecated. Define custom parameters within `languages.xx.params`. See `color` in the example below. +Set language-specific site parameters under each language's `params` key: {{< code-toggle file=hugo >}} - -title = "My blog" -languageCode = "en-us" +[params] +color = "red" [languages] -[languages.sv] -title = "Min blogg" -languageCode = "sv" -[languages.en.params] -color = "blue" + [languages.de] + languageCode = 'de-DE' + title = 'Projekt Dokumentation' + weight = 1 + [languages.de.params] + color = 'blue' + subtitle = 'Referenz, Tutorials und Erklärungen' + [languages.en] + languageCode = 'en-US' + title = 'Project Documentation' + weight = 2 + [languages.en.params] + subtitle = 'Reference, Tutorials, and Explanations' {{< /code-toggle >}} -In the example above, all settings except `color` below `params` map to predefined configuration options in Hugo for the site and its language, and should be accessed via the documented accessors: +When building the English site: ```go-html-template -{{ site.Title }} -{{ site.Language.LanguageCode }} -{{ site.Params.color }} +{{ site.Params.color }} --> red +{{ site.Params.subtitle }} --> Reference, Tutorials, and Explanations +``` + +When building the English site: + +```go-html-template +{{ site.Params.color }} --> blue +{{ site.Params.subtitle }} --> 'Referenz, Tutorials und Erklärungen' ``` ### Disable a language diff --git a/content/en/functions/hugo/WorkingDir.md b/content/en/functions/hugo/WorkingDir.md index 6a838a865..ac3835ea8 100644 --- a/content/en/functions/hugo/WorkingDir.md +++ b/content/en/functions/hugo/WorkingDir.md @@ -13,5 +13,3 @@ action: ```go-html-template {{ hugo.WorkingDir }} → /home/user/projects/my-hugo-site ``` - -{{< new-in 0.112.0 >}} diff --git a/content/en/functions/math/Abs.md b/content/en/functions/math/Abs.md index 682b8426f..6e907d564 100644 --- a/content/en/functions/math/Abs.md +++ b/content/en/functions/math/Abs.md @@ -10,8 +10,6 @@ action: signatures: [math.Abs VALUE] --- -{{< new-in 0.112.0 >}} - ```go-html-template {{ math.Abs -2.1 }} → 2.1 ``` diff --git a/content/en/functions/urls/JoinPath.md b/content/en/functions/urls/JoinPath.md index d9822cfda..bdff5f4b2 100644 --- a/content/en/functions/urls/JoinPath.md +++ b/content/en/functions/urls/JoinPath.md @@ -12,8 +12,6 @@ action: aliases: [/functions/urls.joinpath] --- -{{< new-in 0.112.0 >}} - ```go-html-template {{ urls.JoinPath }} → "" (empty string) {{ urls.JoinPath "" }} → / diff --git a/content/en/getting-started/configuration-build.md b/content/en/getting-started/configuration-build.md index 638ac6eee..637bfeb22 100644 --- a/content/en/getting-started/configuration-build.md +++ b/content/en/getting-started/configuration-build.md @@ -34,8 +34,6 @@ See [Configure Cache Busters](#configure-cache-busters). ## Configure cache busters -{{< new-in 0.112.0 >}} - The `build.cachebusters` configuration option was added to support development using Tailwind 3.x's JIT compiler where a `build` configuration may look like this: {{< code-toggle file=hugo >}}