summaryrefslogtreecommitdiffstats
path: root/common/hugo/hugo.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/hugo/hugo.go')
-rw-r--r--common/hugo/hugo.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/hugo/hugo.go b/common/hugo/hugo.go
index 4ead647b8..a3d1a7bfc 100644
--- a/common/hugo/hugo.go
+++ b/common/hugo/hugo.go
@@ -116,12 +116,18 @@ func (i HugoInfo) IsMultiHost() bool {
return i.conf.IsMultihost()
}
+// IsMultiLingual reports whether there are two or more configured languages.
+func (i HugoInfo) IsMultiLingual() bool {
+ return i.conf.IsMultiLingual()
+}
+
// ConfigProvider represents the config options that are relevant for HugoInfo.
type ConfigProvider interface {
Environment() string
Running() bool
WorkingDir() string
IsMultihost() bool
+ IsMultiLingual() bool
}
// NewInfo creates a new Hugo Info object.