mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
hugolib, output: Add NotAlternative to OutputFormat
To make sure CSS and similar does not appear in the AlternativeOutputFormats list.
This commit is contained in:
@@ -63,6 +63,12 @@ type Format struct {
|
||||
|
||||
// Enable to ignore the global uglyURLs setting.
|
||||
NoUgly bool
|
||||
|
||||
// Enable if it doesn't make sense to include this format in an alternative
|
||||
// format listing, CSS being one good example.
|
||||
// Note that we use the term "alternative" and not "alternate" here, as it
|
||||
// does not necessarily replace the other format, it is an alternative representation.
|
||||
NotAlternative bool
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -88,11 +94,12 @@ var (
|
||||
}
|
||||
|
||||
CSSFormat = Format{
|
||||
Name: "CSS",
|
||||
MediaType: media.CSSType,
|
||||
BaseName: "styles",
|
||||
IsPlainText: true,
|
||||
Rel: "stylesheet",
|
||||
Name: "CSS",
|
||||
MediaType: media.CSSType,
|
||||
BaseName: "styles",
|
||||
IsPlainText: true,
|
||||
Rel: "stylesheet",
|
||||
NotAlternative: true,
|
||||
}
|
||||
CSVFormat = Format{
|
||||
Name: "CSV",
|
||||
|
Reference in New Issue
Block a user