diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-03-10 11:45:29 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-03-10 16:57:25 +0100 |
commit | f8dc47eeffa847fd0b51e376da355e3d957848a6 (patch) | |
tree | fd661968ce136ee69159a3560310b65dc8a17fb6 /output/outputFormat.go | |
parent | ae3fa349de6daf1bbcd09ffc859d6b2e44764795 (diff) | |
download | hugo-f8dc47eeffa847fd0b51e376da355e3d957848a6.tar.gz hugo-f8dc47eeffa847fd0b51e376da355e3d957848a6.zip |
Allow partial redefinition of the ouputs config
Fixes #4487
Diffstat (limited to 'output/outputFormat.go')
-rw-r--r-- | output/outputFormat.go | 10 |
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() { |