aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_output.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-03-16 08:32:14 +0100
committerBjørn Erik Pedersen <[email protected]>2017-03-27 15:43:56 +0200
commit4c2abe0015393de6e7a2af119c2df5b05879fe19 (patch)
treeac7d788472ff18e4e57a160e3eefb28e095bf60f /hugolib/site_output.go
parent6bf010fed432e5574e19fd2946ee6397d895950e (diff)
downloadhugo-4c2abe0015393de6e7a2af119c2df5b05879fe19.tar.gz
hugo-4c2abe0015393de6e7a2af119c2df5b05879fe19.zip
Rename OutputType to OutputFormat
Diffstat (limited to 'hugolib/site_output.go')
-rw-r--r--hugolib/site_output.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/hugolib/site_output.go b/hugolib/site_output.go
index 53d3f9799..6b27bb1a1 100644
--- a/hugolib/site_output.go
+++ b/hugolib/site_output.go
@@ -29,11 +29,11 @@ type siteOutputDefinition struct {
// Comma separated list (for now).
ExcludedKinds string
- Outputs []output.Type
+ Outputs []output.Format
}
-func (defs siteOutputDefinitions) ForKind(kind string) []output.Type {
- var result []output.Type
+func (defs siteOutputDefinitions) ForKind(kind string) []output.Format {
+ var result []output.Format
for _, def := range defs {
if def.ExcludedKinds == "" || !strings.Contains(def.ExcludedKinds, kind) {
@@ -49,7 +49,7 @@ func createSiteOutputDefinitions(cfg config.Provider) siteOutputDefinitions {
var defs siteOutputDefinitions
// All have HTML
- defs = append(defs, siteOutputDefinition{ExcludedKinds: "", Outputs: []output.Type{output.HTMLType}})
+ defs = append(defs, siteOutputDefinition{ExcludedKinds: "", Outputs: []output.Format{output.HTMLType}})
// TODO(bep) output deprecate rssURI
rssBase := cfg.GetString("rssURI")
@@ -63,7 +63,7 @@ func createSiteOutputDefinitions(cfg config.Provider) siteOutputDefinitions {
rssType.BaseName = rssBase
// Some have RSS
- defs = append(defs, siteOutputDefinition{ExcludedKinds: "page", Outputs: []output.Type{rssType}})
+ defs = append(defs, siteOutputDefinition{ExcludedKinds: "page", Outputs: []output.Format{rssType}})
return defs
}