aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources
diff options
context:
space:
mode:
authorOleksandr Redko <[email protected]>2023-08-17 12:16:08 +0300
committerBjørn Erik Pedersen <[email protected]>2023-08-23 22:52:37 +0200
commit65871d5cf48d50935cf6e2d18483c32736c2730d (patch)
tree9ab88d1dd7b1bbe6890f3791e6412bb45779b60a /resources
parent2e4bf89ec7499e91fd406ccce122ca44f02dc092 (diff)
downloadhugo-65871d5cf48d50935cf6e2d18483c32736c2730d.tar.gz
hugo-65871d5cf48d50935cf6e2d18483c32736c2730d.zip
common/loggers: Fix typo in option name
Diffstat (limited to 'resources')
-rw-r--r--resources/page/permalinks.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/page/permalinks.go b/resources/page/permalinks.go
index 7fc55eccb..ee9608dac 100644
--- a/resources/page/permalinks.go
+++ b/resources/page/permalinks.go
@@ -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: