mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-31 22:41:53 +02:00
hugolib: Add basic setup for output def per Kind
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user