summaryrefslogtreecommitdiffstats
path: root/testscripts/commands
diff options
context:
space:
mode:
authorrazonyang <razonyang@gmail.com>2024-02-29 23:58:57 +0800
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-03-07 14:04:41 +0100
commit1f48b717c7f1bb9ecdbf8a7f50cbcdc5cf1dcc0a (patch)
treec0a1c264fb899ea45525543e4b74a86a870e6914 /testscripts/commands
parentada3fceea839c2abc0e22eafbb683a4df42f5bae (diff)
Add hugo.IsMultiHost
Diffstat (limited to 'testscripts/commands')
-rw-r--r--testscripts/commands/hugo_is_multihost.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/testscripts/commands/hugo_is_multihost.txt b/testscripts/commands/hugo_is_multihost.txt
new file mode 100644
index 000000000..a1147cd73
--- /dev/null
+++ b/testscripts/commands/hugo_is_multihost.txt
@@ -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 }}