diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-05-24 09:26:30 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-05-24 12:42:56 +0200 |
commit | 9a235d0afca6125f7cf222ae0d66a5fe91ae8694 (patch) | |
tree | 00d0b6b3edfda3e7e2ca90f0e6def9e64d301912 /testscripts | |
parent | 99407c39ba92b3bfc569a505b05033e04b242e8d (diff) | |
download | hugo-9a235d0afca6125f7cf222ae0d66a5fe91ae8694.tar.gz hugo-9a235d0afca6125f7cf222ae0d66a5fe91ae8694.zip |
Fix regression with site.IsServer when not running a server
Fixes #11006
Diffstat (limited to 'testscripts')
-rw-r--r-- | testscripts/commands/hugo.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testscripts/commands/hugo.txt b/testscripts/commands/hugo.txt index 7dfabe592..9907f5258 100644 --- a/testscripts/commands/hugo.txt +++ b/testscripts/commands/hugo.txt @@ -5,12 +5,13 @@ stdout 'Pages.*|1' stdout 'Total in' checkfile public/index.html checkfile public/p1/index.html +grep 'IsServer: false' public/index.html -- hugo.toml -- baseURL = "http://example.org/" disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] -- layouts/index.html -- -Home. +Home|IsServer: {{ .Site.IsServer }}| -- layouts/_default/single.html -- Title: {{ .Title }} -- content/p1.md -- |