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

@ -1,13 +0,0 @@
hugo
stdout 'IsMultiHost: true'
-- hugo.toml --
title = "Hugo IsMultiHost Test"
[languages.en]
baseURL = "https://example.org"
[languages.zh]
baseURL = "https://zh.example.org"
-- layouts/index.html --
{{ warnf "IsMultiHost: %v" hugo.IsMultiHost }}