mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
Add hugo.IsMultiHost
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
ada3fceea8
commit
1f48b717c7
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 }}
|
Reference in New Issue
Block a user