aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources
diff options
context:
space:
mode:
authorrazonyang <[email protected]>2024-02-29 23:58:57 +0800
committerBjørn Erik Pedersen <[email protected]>2024-03-07 14:04:41 +0100
commit1f48b717c7f1bb9ecdbf8a7f50cbcdc5cf1dcc0a (patch)
treec0a1c264fb899ea45525543e4b74a86a870e6914 /resources
parentada3fceea839c2abc0e22eafbb683a4df42f5bae (diff)
downloadhugo-1f48b717c7f1bb9ecdbf8a7f50cbcdc5cf1dcc0a.tar.gz
hugo-1f48b717c7f1bb9ecdbf8a7f50cbcdc5cf1dcc0a.zip
Add hugo.IsMultiHost
Diffstat (limited to 'resources')
-rw-r--r--resources/page/page_matcher_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/page/page_matcher_test.go b/resources/page/page_matcher_test.go
index e659eb3b5..21f6891d7 100644
--- a/resources/page/page_matcher_test.go
+++ b/resources/page/page_matcher_test.go
@@ -160,6 +160,7 @@ type testConfig struct {
environment string
running bool
workingDir string
+ multihost bool
}
func (c testConfig) Environment() string {
@@ -174,6 +175,10 @@ func (c testConfig) WorkingDir() string {
return c.workingDir
}
+func (c testConfig) IsMultihost() bool {
+ return c.multihost
+}
+
func TestIsGlobWithExtension(t *testing.T) {
c := qt.New(t)