diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-07 14:20:39 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-27 15:43:56 +0200 |
commit | f091fc23edfa912ae3e6e2d3a80d65432db6e35e (patch) | |
tree | 33113d78398ff18bd16b1cb26e4003e01ce3260b /output | |
parent | 03122e51fa41d0a289054eedc2d6fffd7f9f2e0b (diff) |
hugolib: Add basic setup for output def per Kind
Diffstat (limited to 'output')
-rw-r--r-- | output/outputType.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/output/outputType.go b/output/outputType.go index 222494b09..cf5fff76e 100644 --- a/output/outputType.go +++ b/output/outputType.go @@ -21,11 +21,13 @@ var ( HTMLType = Type{ Name: "HTML", MediaType: media.HTMLType, + BaseName: "index", } RSSType = Type{ Name: "RSS", MediaType: media.RSSType, + BaseName: "index", } ) @@ -42,7 +44,16 @@ type Type struct { // Must be set to a value when there are two or more conflicting mediatype for the same resource. Path string + // The base output file name used when not using "ugly URLs", defaults to "index". + BaseName string + + // The protocol to use, i.e. "webcal://". Defaults to the protocol of the baseURL. + Protocol string + // IsPlainText decides whether to use text/template or html/template // as template parser. IsPlainText bool + + // Enable to ignore the global uglyURLs setting. + NoUgly bool } |