summaryrefslogtreecommitdiffhomepage
path: root/output
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-03-10 11:45:29 +0100
committerBjørn Erik Pedersen <[email protected]>2018-03-10 16:57:25 +0100
commitf8dc47eeffa847fd0b51e376da355e3d957848a6 (patch)
treefd661968ce136ee69159a3560310b65dc8a17fb6 /output
parentae3fa349de6daf1bbcd09ffc859d6b2e44764795 (diff)
downloadhugo-f8dc47eeffa847fd0b51e376da355e3d957848a6.tar.gz
hugo-f8dc47eeffa847fd0b51e376da355e3d957848a6.zip
Allow partial redefinition of the ouputs config
Fixes #4487
Diffstat (limited to 'output')
-rw-r--r--output/outputFormat.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/output/outputFormat.go b/output/outputFormat.go
index 0920e5736..877850160 100644
--- a/output/outputFormat.go
+++ b/output/outputFormat.go
@@ -140,6 +140,14 @@ var (
NoUgly: true,
Rel: "alternate",
}
+
+ SitemapFormat = Format{
+ Name: "Sitemap",
+ MediaType: media.XMLType,
+ BaseName: "sitemap",
+ NoUgly: true,
+ Rel: "sitemap",
+ }
)
var DefaultFormats = Formats{
@@ -149,7 +157,9 @@ var DefaultFormats = Formats{
CSVFormat,
HTMLFormat,
JSONFormat,
+ RobotsTxtFormat,
RSSFormat,
+ SitemapFormat,
}
func init() {