diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-07-08 16:16:06 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-07-08 16:51:48 +0200 |
commit | a481942532c9e9acd841f566291d17db4858cea3 (patch) | |
tree | 4f1d749e6b0df71638d585f17b5ba51066537e60 /hugolib | |
parent | 0f921ace6f897ba63cdcce7a0ef59c9c615920bd (diff) |
Restore language.disabled config
Fixes #11219
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/config_test.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/hugolib/config_test.go b/hugolib/config_test.go index 567059e68..cdac0fbab 100644 --- a/hugolib/config_test.go +++ b/hugolib/config_test.go @@ -1384,3 +1384,30 @@ Home. }) } + +func TestLanguagesDisabled(t *testing.T) { + t.Parallel() + + files := ` +-- hugo.toml -- +[languages] +[languages.en] +title = "English Title" +[languages.sv] +title = "Swedish Title" +disabled = true +-- layouts/index.html -- +Home. + + +` + b := NewIntegrationTestBuilder( + IntegrationTestConfig{ + T: t, + TxtarString: files, + }, + ).Build() + + b.Assert(len(b.H.Sites), qt.Equals, 1) + +} |