aboutsummaryrefslogtreecommitdiffhomepage
path: root/output
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-02-21 19:06:46 +0100
committerBjørn Erik Pedersen <[email protected]>2024-02-21 20:07:51 +0100
commite75784930dca9e367019ce498fd15076a63edb34 (patch)
tree4ffde280ec5b85e0ffcf23211d3b49b70c7364a1 /output
parentb8ab5c9be6d4bbce609d65ebb51b7acf811e98ff (diff)
downloadhugo-e75784930dca9e367019ce498fd15076a63edb34.tar.gz
hugo-e75784930dca9e367019ce498fd15076a63edb34.zip
Sitemap should not use list.xml
Fixes #12101
Diffstat (limited to 'output')
-rw-r--r--output/layouts/layout.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/output/layouts/layout.go b/output/layouts/layout.go
index b903e09ea..09606dba1 100644
--- a/output/layouts/layout.go
+++ b/output/layouts/layout.go
@@ -50,7 +50,7 @@ type LayoutDescriptor struct {
}
func (d LayoutDescriptor) isList() bool {
- return !d.RenderingHook && d.Kind != "page" && d.Kind != "404"
+ return !d.RenderingHook && d.Kind != "page" && d.Kind != "404" && d.Kind != "sitemap" && d.Kind != "sitemapindex"
}
// LayoutHandler calculates the layout template to use to render a given output type.