Allow partial redefinition of the ouputs config

Fixes #4487
This commit is contained in:
Bjørn Erik Pedersen
2018-03-10 11:45:29 +01:00
parent ae3fa349de
commit f8dc47eeff
3 changed files with 137 additions and 88 deletions

View File

@@ -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() {