mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-10 19:54:08 +02:00
hugolib: Deprecate .Site.MultiLingual in favor of hugo.IsMultiLingual
Closes #12224
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
d24ffdde5b
commit
4f92f949ea
@@ -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 }}
|
Reference in New Issue
Block a user