diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-02-01 09:37:05 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-01 19:42:55 +0100 |
commit | 4174a7866b75c6ae10827cc77dbae0676af8e5eb (patch) | |
tree | 90554344f1749dcdbcfe4587815643c35723b1c2 /hugolib/page__new.go | |
parent | 5dd06b4136aead1d4c8ef835f0670c32ae321152 (diff) | |
download | hugo-4174a7866b75c6ae10827cc77dbae0676af8e5eb.tar.gz hugo-4174a7866b75c6ae10827cc77dbae0676af8e5eb.zip |
Fix disabled languages regression
Fixes #11959
Diffstat (limited to 'hugolib/page__new.go')
-rw-r--r-- | hugolib/page__new.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hugolib/page__new.go b/hugolib/page__new.go index 3bef55f43..d846fe03c 100644 --- a/hugolib/page__new.go +++ b/hugolib/page__new.go @@ -60,6 +60,11 @@ func (h *HugoSites) newPage(m *pageMeta) (*pageState, *paths.Path, error) { return nil, nil, m.wrapError(err, h.BaseFs.SourceFs) } pcfg := m.pageConfig + if pcfg.Lang != "" { + if h.Conf.IsLangDisabled(pcfg.Lang) { + return nil, nil, nil + } + } if pcfg.Path != "" { s := m.pageConfig.Path |