hugolib: Deprecate .Site.MultiLingual in favor of hugo.IsMultiLingual

Closes #12224
This commit is contained in:
Joe Mooring
2024-03-09 11:21:46 -08:00
committed by Bjørn Erik Pedersen
parent d24ffdde5b
commit 4f92f949ea
9 changed files with 129 additions and 45 deletions

View File

@@ -157,10 +157,11 @@ func TestDecodeCascadeConfig(t *testing.T) {
}
type testConfig struct {
environment string
running bool
workingDir string
multihost bool
environment string
running bool
workingDir string
multihost bool
multilingual bool
}
func (c testConfig) Environment() string {
@@ -179,6 +180,10 @@ func (c testConfig) IsMultihost() bool {
return c.multihost
}
func (c testConfig) IsMultiLingual() bool {
return c.multilingual
}
func TestIsGlobWithExtension(t *testing.T) {
c := qt.New(t)