mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
common/loggers: Fix typo in option name
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
2e4bf89ec7
commit
65871d5cf4
@@ -399,7 +399,7 @@ func (l PermalinkExpander) toSliceFunc(cut string) func(s []string) []string {
|
||||
|
||||
}
|
||||
|
||||
var permalinksKindsSuppurt = []string{kinds.KindPage, kinds.KindSection, kinds.KindTaxonomy, kinds.KindTerm}
|
||||
var permalinksKindsSupport = []string{kinds.KindPage, kinds.KindSection, kinds.KindTaxonomy, kinds.KindTerm}
|
||||
|
||||
// DecodePermalinksConfig decodes the permalinks configuration in the given map
|
||||
func DecodePermalinksConfig(m map[string]any) (map[string]map[string]string, error) {
|
||||
@@ -425,7 +425,7 @@ func DecodePermalinksConfig(m map[string]any) (map[string]map[string]string, err
|
||||
// [permalinks.key]
|
||||
// xyz = ???
|
||||
|
||||
if helpers.InStringArray(permalinksKindsSuppurt, k) {
|
||||
if helpers.InStringArray(permalinksKindsSupport, k) {
|
||||
// TODO: warn if we overwrite an already set value
|
||||
for k2, v2 := range v {
|
||||
switch v2 := v2.(type) {
|
||||
@@ -437,7 +437,7 @@ func DecodePermalinksConfig(m map[string]any) (map[string]map[string]string, err
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return nil, fmt.Errorf("permalinks configuration not supported for kind %q, supported kinds are %v", k, permalinksKindsSuppurt)
|
||||
return nil, fmt.Errorf("permalinks configuration not supported for kind %q, supported kinds are %v", k, permalinksKindsSupport)
|
||||
}
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user