From 09c88e84d196e6c0943b220cd6526d3473c530b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 25 Mar 2017 19:36:50 +0100 Subject: output: Rename HTMLType etc. to HTMLFormat --- hugolib/site_output.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'hugolib/site_output.go') 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) -- cgit v1.2.3