summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Deininger <andreas@deininger.net>2023-05-18 22:51:11 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-05-19 08:43:02 +0200
commitad4bc969da46cc624ab17d600a812c966248553d (patch)
tree95981c32796a8bec066699d8135714be9b473d41
parent4003c7903f69610d1d1277f73c1e236ff34af690 (diff)
Fix warn message about custom params on the language top level
-rw-r--r--config/allconfig/allconfig.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/allconfig/allconfig.go b/config/allconfig/allconfig.go
index f0b87ee94..1048dda82 100644
--- a/config/allconfig/allconfig.go
+++ b/config/allconfig/allconfig.go
@@ -12,7 +12,7 @@
// limitations under the License.
// Package allconfig contains the full configuration for Hugo.
-// <docsmeta>{ "name": "Configuration", "description": "This section holds all configiration options in Hugo." }</docsmeta>
+// <docsmeta>{ "name": "Configuration", "description": "This section holds all configuration options in Hugo." }</docsmeta>
package allconfig
import (
@@ -711,10 +711,10 @@ func FromLoadConfigResult(fs afero.Fs, res config.LoadConfigResult) (*Configs, e
}
if kk != maps.MergeStrategyKey && !configLanguageKeys[kk] {
// This should have been placed below params.
- // We accidently allowed it in the past, so we need to support it a little longer,
+ // We accidentally allowed it in the past, so we need to support it a little longer,
// But log a warning.
if _, found := params[kk]; !found {
- helpers.Deprecated(fmt.Sprintf("config: languages.%s.%s: custom params on the language top level", k, kk), fmt.Sprintf("Put the value below [languages.%s.params]. See See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120", k), false)
+ helpers.Deprecated(fmt.Sprintf("config: languages.%s.%s: custom params on the language top level", k, kk), fmt.Sprintf("Put the value below [languages.%s.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120", k), false)
params[kk] = vv
}
}