aboutsummaryrefslogtreecommitdiffhomepage
path: root/testscripts
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-08-05 19:14:07 +0200
committerBjørn Erik Pedersen <[email protected]>2024-08-05 19:23:53 +0200
commit69455fa422cce664302a2cd68cdb0d4b1791afdc (patch)
tree7ce0a0e03ee79adf5477b6ae19d7f56877035520 /testscripts
parent2fcc53780f765c05dd6b7ec41c6bb76308362e5e (diff)
downloadhugo-69455fa422cce664302a2cd68cdb0d4b1791afdc.tar.gz
hugo-69455fa422cce664302a2cd68cdb0d4b1791afdc.zip
Fix deprecation errors
Diffstat (limited to 'testscripts')
-rw-r--r--testscripts/commands/hugo.txt2
-rw-r--r--testscripts/commands/server.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/testscripts/commands/hugo.txt b/testscripts/commands/hugo.txt
index 60f7ffe71..bf0f5cf0d 100644
--- a/testscripts/commands/hugo.txt
+++ b/testscripts/commands/hugo.txt
@@ -11,7 +11,7 @@ grep 'IsServer: false;IsProduction: true' public/index.html
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
-Home|IsServer: {{ .Site.IsServer }};IsProduction: {{ hugo.IsProduction }}|
+Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
-- layouts/_default/single.html --
Title: {{ .Title }}
-- content/p1.md --
diff --git a/testscripts/commands/server.txt b/testscripts/commands/server.txt
index a28e4d698..7f6afd8fd 100644
--- a/testscripts/commands/server.txt
+++ b/testscripts/commands/server.txt
@@ -25,7 +25,7 @@ myenv = "theproduction"
myenv = "thedevelopment"
-- layouts/index.html --
<body>
-Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|ServerPort: {{ site.ServerPort }}|myenv: {{ .Site.Params.myenv }}|Env: {{ hugo.Environment }}|IsServer: {{ site.IsServer }}|
+Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|ServerPort: {{ site.ServerPort }}|myenv: {{ .Site.Params.myenv }}|Env: {{ hugo.Environment }}|IsServer: {{ hugo.IsServer }}|
</body>
-- layouts/404.html --
custom 404