mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
hugolib, output: Handle aliases for all HTML formats
This commit is contained in:
@@ -29,6 +29,7 @@ var (
|
||||
BaseName: "index",
|
||||
Path: "amp",
|
||||
Rel: "amphtml",
|
||||
IsHTML: true,
|
||||
}
|
||||
|
||||
CalendarType = Format{
|
||||
@@ -52,6 +53,7 @@ var (
|
||||
MediaType: media.HTMLType,
|
||||
BaseName: "index",
|
||||
Rel: "canonical",
|
||||
IsHTML: true,
|
||||
}
|
||||
|
||||
JSONType = Format{
|
||||
@@ -113,6 +115,10 @@ type Format struct {
|
||||
// as template parser.
|
||||
IsPlainText bool
|
||||
|
||||
// IsHTML returns whether this format is int the HTML family. This includes
|
||||
// HTML, AMP etc. This is used to decide when to create alias redirects etc.
|
||||
IsHTML bool
|
||||
|
||||
// Enable to ignore the global uglyURLs setting.
|
||||
NoUgly bool
|
||||
}
|
||||
|
Reference in New Issue
Block a user