mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
hugolib: Deprecate .Site.MultiLingual in favor of hugo.IsMultiLingual
Closes #12224
This commit is contained in:
parent
d24ffdde5b
commit
4f92f949ea
9 changed files with 129 additions and 45 deletions
|
@ -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 }}
|
Loading…
Add table
Add a link
Reference in a new issue