aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/config.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-07-03 10:40:59 +0200
committerBjørn Erik Pedersen <[email protected]>2021-07-03 15:53:21 +0200
commite451b984cfb45b54a3972cefa59a02d50b0b0fd2 (patch)
tree6eb25f689c753c3a65edd9ca859e2ce40afd4a6d /hugolib/config.go
parentb4d60b3db1c05816458cc4f4f29d42156845e6c1 (diff)
downloadhugo-e451b984cfb45b54a3972cefa59a02d50b0b0fd2.tar.gz
hugo-e451b984cfb45b54a3972cefa59a02d50b0b0fd2.zip
Fix panic when theme has permalinks config
Fixes #8724
Diffstat (limited to 'hugolib/config.go')
-rw-r--r--hugolib/config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 3e3700433..65b269ab6 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -255,9 +255,9 @@ func (l configLoader) applyConfigDefaults() error {
"relativeURLs": false,
"removePathAccents": false,
"titleCaseStyle": "AP",
- "taxonomies": map[string]string{"tag": "tags", "category": "categories"},
- "permalinks": make(map[string]string),
- "sitemap": config.Sitemap{Priority: -1, Filename: "sitemap.xml"},
+ "taxonomies": maps.Params{"tag": "tags", "category": "categories"},
+ "permalinks": maps.Params{},
+ "sitemap": maps.Params{"priority": -1, "filename": "sitemap.xml"},
"disableLiveReload": false,
"pluralizeListTitles": true,
"forceSyncStatic": false,