mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 13:40:38 +03:00
Add hugo.IsMultiHost
This commit is contained in:
parent
ada3fceea8
commit
1f48b717c7
4 changed files with 29 additions and 0 deletions
13
testscripts/commands/hugo_is_multihost.txt
Normal file
13
testscripts/commands/hugo_is_multihost.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
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