1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

Add hugo.IsExtended

Fixes #8399
This commit is contained in:
Bjørn Erik Pedersen
2021-04-09 07:28:27 +02:00
parent 3d5dbdcb1a
commit 7fdd2b95e2
3 changed files with 8 additions and 0 deletions

View File

@@ -71,6 +71,10 @@ func (i Info) IsProduction() bool {
return i.Environment == EnvironmentProduction
}
func (i Info) IsExtended() bool {
return IsExtended
}
// NewInfo creates a new Hugo Info object.
func NewInfo(environment string) Info {
if environment == "" {