From 91eb442754558711db46b444b70df8e39385892d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 23 May 2023 09:05:25 +0200 Subject: [PATCH] Some more about 0.112.0 --- content/en/content-management/multilingual.md | 4 ++-- layouts/shortcodes/new-in.html | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/content/en/content-management/multilingual.md b/content/en/content-management/multilingual.md index f1f25086a..c4adae9a6 100644 --- a/content/en/content-management/multilingual.md +++ b/content/en/content-management/multilingual.md @@ -73,10 +73,10 @@ Only the obvious non-global options can be overridden per language. Examples of {{< new-in "0.112.0" >}} -In version `0.112.0` of Hugo we did a major we consolidated all configuration options, but also improved how the languages and their params gets merged with the main configuration. But while testing this on Hugo sites out there, we got some error reports. +In version `0.112.0` of Hugo we did a major we consolidated all configuration options, but also improved how the languages and their params gets merged with the main configuration. But while testing this on Hugo sites out there, we got some error reports, and reverted some of the changes in favour of deprecation warnings: 1. `site.Language.Params` is deprecated. Use `site.Params` directly. -1. The `params` sections on site and language is the only place to put custom user parameters, and `site.Params` will only contain these user defined parameters (see example below). +1. Adding custom params to the top level language config is deprecated, add all of these below `[params]`, see `color` in the example below. ```toml title = "My blog" diff --git a/layouts/shortcodes/new-in.html b/layouts/shortcodes/new-in.html index e81fda3c5..71d1abfdf 100644 --- a/layouts/shortcodes/new-in.html +++ b/layouts/shortcodes/new-in.html @@ -1,8 +1,13 @@ {{ $version := .Get 0 }} {{ if not $version }} -{{ errorf "Missing version in new-in shortcode "}} + {{ errorf "Missing version in new-in shortcode " }} {{ end }} {{ $version = $version | strings.TrimPrefix "v" }} -