Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-03-10 13:45:29 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-03-10 18:57:25 +0300
commitf8dc47eeffa847fd0b51e376da355e3d957848a6 (patch)
treefd661968ce136ee69159a3560310b65dc8a17fb6 /output
parentae3fa349de6daf1bbcd09ffc859d6b2e44764795 (diff)
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() {