diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-25 19:36:50 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-27 15:43:56 +0200 |
commit | 09c88e84d196e6c0943b220cd6526d3473c530b6 (patch) | |
tree | 6bc3c0e7abe4c1d8d47b02a72e6dc855a2ad5d45 /hugolib/site_output.go | |
parent | 24c1770288803bd7a344f5903dd4f03cccc6a8f0 (diff) |
output: Rename HTMLType etc. to HTMLFormat
Diffstat (limited to 'hugolib/site_output.go')
-rw-r--r-- | hugolib/site_output.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hugolib/site_output.go b/hugolib/site_output.go index 8b0dd7d63..69e68ff9b 100644 --- a/hugolib/site_output.go +++ b/hugolib/site_output.go @@ -33,7 +33,6 @@ func createSiteOutputFormats(cfg config.Provider) (map[string]output.Formats, er outputs := cfg.GetStringMap("outputs") if outputs == nil || len(outputs) == 0 { - // TODO(bep) outputs log a warning? return outFormats, nil } @@ -56,7 +55,7 @@ func createSiteOutputFormats(cfg config.Provider) (map[string]output.Formats, er // Make sure every kind has at least one output format for _, kind := range allKinds { if _, found := outFormats[kind]; !found { - outFormats[kind] = output.Formats{output.HTMLType} + outFormats[kind] = output.Formats{output.HTMLFormat} } } @@ -69,7 +68,7 @@ func createDefaultOutputFormats(cfg config.Provider) (map[string]output.Formats, for _, kind := range allKinds { var formats output.Formats // All have HTML - formats = append(formats, output.HTMLType) + formats = append(formats, output.HTMLFormat) // All but page have RSS if kind != KindPage { @@ -81,7 +80,7 @@ func createDefaultOutputFormats(cfg config.Provider) (map[string]output.Formats, // RSS has now a well defined media type, so strip any suffix provided rssBase = strings.TrimSuffix(rssBase, path.Ext(rssBase)) - rssType := output.RSSType + rssType := output.RSSFormat rssType.BaseName = rssBase formats = append(formats, rssType) |