From 69455fa422cce664302a2cd68cdb0d4b1791afdc Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Mon, 5 Aug 2024 19:14:07 +0200 Subject: Fix deprecation errors --- testscripts/commands/hugo.txt | 2 +- testscripts/commands/server.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'testscripts') 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 -- -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 }}| -- layouts/404.html -- custom 404 -- cgit v1.2.3