diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-07-08 16:16:06 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-07-08 16:51:48 +0200 |
commit | a481942532c9e9acd841f566291d17db4858cea3 (patch) | |
tree | 4f1d749e6b0df71638d585f17b5ba51066537e60 /langs | |
parent | 0f921ace6f897ba63cdcce7a0ef59c9c615920bd (diff) | |
download | hugo-a481942532c9e9acd841f566291d17db4858cea3.tar.gz hugo-a481942532c9e9acd841f566291d17db4858cea3.zip |
Restore language.disabled config
Fixes #11219
Diffstat (limited to 'langs')
-rw-r--r-- | langs/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/langs/config.go b/langs/config.go index f60ea94a4..7cca0f5e7 100644 --- a/langs/config.go +++ b/langs/config.go @@ -39,6 +39,9 @@ type LanguageConfig struct { // The language weight. When set to a non-zero value, this will // be the main sort criteria for the language. Weight int + + // Set to true to disable this language. + Disabled bool } func DecodeConfig(m map[string]any) (map[string]LanguageConfig, error) { |