diff options
Diffstat (limited to 'common/hugo/hugo.go')
-rw-r--r-- | common/hugo/hugo.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/hugo/hugo.go b/common/hugo/hugo.go index be43e2a38..4ead647b8 100644 --- a/common/hugo/hugo.go +++ b/common/hugo/hugo.go @@ -111,11 +111,17 @@ func (i HugoInfo) Deps() []*Dependency { return i.deps } +// IsMultiHost reports whether each configured language has a unique baseURL. +func (i HugoInfo) IsMultiHost() bool { + return i.conf.IsMultihost() +} + // ConfigProvider represents the config options that are relevant for HugoInfo. type ConfigProvider interface { Environment() string Running() bool WorkingDir() string + IsMultihost() bool } // NewInfo creates a new Hugo Info object. |