From 45b67f6c18781cc986d4c97b7554f5286a2a6f7f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 27 Nov 2025 20:41:56 +0100 Subject: [PATCH] testscripts: Move layouts file to new structure --- testscripts/commands/deprecate.txt | 2 +- testscripts/commands/hugo.txt | 4 ++-- testscripts/commands/hugo__path-warnings-postprocess.txt | 4 ++-- testscripts/commands/hugo__path-warnings.txt | 4 ++-- testscripts/commands/hugo__path-warnings_issue13164.txt | 2 +- testscripts/commands/hugo__processingstats.txt | 4 ++-- testscripts/commands/hugo__processingstats2.txt | 4 ++-- testscripts/commands/hugo__publishdir_in_config.txt | 2 +- testscripts/commands/hugo__watch.txt | 4 ++-- testscripts/commands/hugo_build.txt | 4 ++-- testscripts/commands/hugo_configdev_env.txt | 4 ++-- testscripts/commands/hugo_configdev_environment.txt | 4 ++-- testscripts/commands/hugo_configprod.txt | 4 ++-- testscripts/commands/hugo_printpathwarnings.txt | 4 ++-- testscripts/commands/hugo_printunusedtemplates.txt | 4 ++-- testscripts/commands/server.txt | 2 +- testscripts/commands/server__edit_config.txt | 2 +- testscripts/commands/server__edit_content.txt | 4 ++-- testscripts/commands/server__error_recovery_edit_config.txt | 4 ++-- testscripts/commands/server__error_recovery_edit_content.txt | 4 ++-- testscripts/commands/server__multihost.txt | 2 +- testscripts/commands/server__watch_hugo_stats.txt | 2 +- testscripts/commands/server__watch_moduleconfig.txt | 2 +- testscripts/commands/server_disablelivereload.txt | 2 +- testscripts/commands/server_disablelivereload__config.txt | 2 +- testscripts/commands/server_render_static_to_disk.txt | 2 +- testscripts/commands/server_render_to_memory.txt | 2 +- testscripts/commands/warnf_stderr.txt | 2 +- 28 files changed, 43 insertions(+), 43 deletions(-) diff --git a/testscripts/commands/deprecate.txt b/testscripts/commands/deprecate.txt index 8791c3a78..0ac6cc2a8 100644 --- a/testscripts/commands/deprecate.txt +++ b/testscripts/commands/deprecate.txt @@ -12,7 +12,7 @@ stderr 'ERROR deprecated: item was deprecated in Hugo' -- hugo.toml -- baseURL = "https://example.com/" disableKinds = ["taxonomy", "term"] --- layouts/index.html -- +-- layouts/home.html -- Deprecate: {{ if eq hugo.Environment "info" }} {{ debug.TestDeprecationInfo "item" "alternative" }} diff --git a/testscripts/commands/hugo.txt b/testscripts/commands/hugo.txt index bf0f5cf0d..bb44e4117 100644 --- a/testscripts/commands/hugo.txt +++ b/testscripts/commands/hugo.txt @@ -10,9 +10,9 @@ grep 'IsServer: false;IsProduction: true' public/index.html -- hugo.toml -- baseURL = "http://example.org/" disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] --- layouts/index.html -- +-- layouts/home.html -- Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}| --- layouts/_default/single.html -- +-- layouts/single.html -- Title: {{ .Title }} -- content/p1.md -- --- diff --git a/testscripts/commands/hugo__path-warnings-postprocess.txt b/testscripts/commands/hugo__path-warnings-postprocess.txt index 0677da084..c3f37630c 100644 --- a/testscripts/commands/hugo__path-warnings-postprocess.txt +++ b/testscripts/commands/hugo__path-warnings-postprocess.txt @@ -10,9 +10,9 @@ body { -- content/p1.md -- -- content/p2.md -- -- content/p3.md -- --- layouts/index.html -- +-- layouts/home.html -- Home. --- layouts/_default/single.html -- +-- layouts/single.html -- {{ $css := resources.Get "css/styles.css" }} {{ $css := $css | minify | fingerprint | resources.PostProcess }} CSS: {{ $css.RelPermalink }} diff --git a/testscripts/commands/hugo__path-warnings.txt b/testscripts/commands/hugo__path-warnings.txt index 8eccb6567..81636adda 100644 --- a/testscripts/commands/hugo__path-warnings.txt +++ b/testscripts/commands/hugo__path-warnings.txt @@ -19,8 +19,8 @@ url: /p1/ --- url: /p1/ --- --- layouts/index.html -- +-- layouts/home.html -- Home. --- layouts/_default/single.html -- +-- layouts/single.html -- Single. diff --git a/testscripts/commands/hugo__path-warnings_issue13164.txt b/testscripts/commands/hugo__path-warnings_issue13164.txt index 1342c287a..b374df2f8 100644 --- a/testscripts/commands/hugo__path-warnings_issue13164.txt +++ b/testscripts/commands/hugo__path-warnings_issue13164.txt @@ -6,7 +6,7 @@ hugo --printPathWarnings disableKinds = ['page','rss','section','sitemap','taxonomy','term'] -- assets/foo.txt -- foo --- layouts/index.html -- +-- layouts/home.html -- A: {{ (resources.Get "foo.txt").RelPermalink }} B: {{ (resources.GetMatch "foo.txt").RelPermalink }} C: {{ (index (resources.Match "foo.txt") 0).RelPermalink }} diff --git a/testscripts/commands/hugo__processingstats.txt b/testscripts/commands/hugo__processingstats.txt index 3d30b8155..4d683a1be 100644 --- a/testscripts/commands/hugo__processingstats.txt +++ b/testscripts/commands/hugo__processingstats.txt @@ -39,9 +39,9 @@ baseURL = "https://example.com/" weight = 2 title = "French Title" contentDir = "content/fr" --- layouts/index.html -- +-- layouts/home.html -- Home. --- layouts/_default/single.html -- +-- layouts/single.html -- Single. {{ range .Resources }} {{ $img := .Resize "3x" }} diff --git a/testscripts/commands/hugo__processingstats2.txt b/testscripts/commands/hugo__processingstats2.txt index 2f8226faa..9857bb4cc 100644 --- a/testscripts/commands/hugo__processingstats2.txt +++ b/testscripts/commands/hugo__processingstats2.txt @@ -9,8 +9,8 @@ stdout 'Non-page files.*/| 2\s' -- content/posts/post-1/index.md -- -- hugo.toml -- baseURL = "https://example.com/" --- layouts/_default/list.html -- +-- layouts/list.html -- List. --- layouts/_default/single.html -- +-- layouts/single.html -- Single. diff --git a/testscripts/commands/hugo__publishdir_in_config.txt b/testscripts/commands/hugo__publishdir_in_config.txt index e57d4ad2f..e1914ea0b 100644 --- a/testscripts/commands/hugo__publishdir_in_config.txt +++ b/testscripts/commands/hugo__publishdir_in_config.txt @@ -8,5 +8,5 @@ grep 'Home' newpublic/index.html baseURL = "http://example.org/" disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] publishDir = "newpublic" --- layouts/index.html -- +-- layouts/home.html -- Home. diff --git a/testscripts/commands/hugo__watch.txt b/testscripts/commands/hugo__watch.txt index aa5201c56..34538f123 100644 --- a/testscripts/commands/hugo__watch.txt +++ b/testscripts/commands/hugo__watch.txt @@ -18,9 +18,9 @@ stop -- hugo.toml -- baseURL = "http://example.org/" disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] --- layouts/index.html -- +-- layouts/home.html -- Home. --- layouts/_default/single.html -- +-- layouts/single.html -- Title: {{ .Title }}| {{ .Content }} -- content/p1.md -- --- diff --git a/testscripts/commands/hugo_build.txt b/testscripts/commands/hugo_build.txt index 0bcbcba7a..400102d0d 100644 --- a/testscripts/commands/hugo_build.txt +++ b/testscripts/commands/hugo_build.txt @@ -10,9 +10,9 @@ grep 'IsServer: false;IsProduction: true' public/index.html -- hugo.toml -- baseURL = "http://example.org/" disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] --- layouts/index.html -- +-- layouts/home.html -- Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}| --- layouts/_default/single.html -- +-- layouts/single.html -- Title: {{ .Title }} -- content/p1.md -- --- diff --git a/testscripts/commands/hugo_configdev_env.txt b/testscripts/commands/hugo_configdev_env.txt index 758f4fc96..8c71d1fba 100644 --- a/testscripts/commands/hugo_configdev_env.txt +++ b/testscripts/commands/hugo_configdev_env.txt @@ -7,9 +7,9 @@ grep 'myparam: dev§' public/index.html -- hugo.toml -- baseURL = "http://example.org/" disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] --- layouts/index.html -- +-- layouts/home.html -- myparam: {{ site.Params.myparam }}§ --- layouts/_default/single.html -- +-- layouts/single.html -- Title: {{ .Title }} -- config/development/params.toml -- myparam = "dev" diff --git a/testscripts/commands/hugo_configdev_environment.txt b/testscripts/commands/hugo_configdev_environment.txt index 037148178..0be8e0d8b 100644 --- a/testscripts/commands/hugo_configdev_environment.txt +++ b/testscripts/commands/hugo_configdev_environment.txt @@ -10,9 +10,9 @@ grep 'myparam: §' public/index.html -- hugo.toml -- baseURL = "http://example.org/" disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] --- layouts/index.html -- +-- layouts/home.html -- myparam: {{ site.Params.myparam }}§ --- layouts/_default/single.html -- +-- layouts/single.html -- Title: {{ .Title }} -- config/development/params.toml -- myparam = "dev" diff --git a/testscripts/commands/hugo_configprod.txt b/testscripts/commands/hugo_configprod.txt index ac046b205..9af516bd3 100644 --- a/testscripts/commands/hugo_configprod.txt +++ b/testscripts/commands/hugo_configprod.txt @@ -6,9 +6,9 @@ grep 'myparam: §' public/index.html -- hugo.toml -- baseURL = "http://example.org/" disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] --- layouts/index.html -- +-- layouts/home.html -- myparam: {{ site.Params.myparam }}§ --- layouts/_default/single.html -- +-- layouts/single.html -- Title: {{ .Title }} -- config/development/params.toml -- myparam = "dev" diff --git a/testscripts/commands/hugo_printpathwarnings.txt b/testscripts/commands/hugo_printpathwarnings.txt index 51eb46d91..437a5a7ab 100644 --- a/testscripts/commands/hugo_printpathwarnings.txt +++ b/testscripts/commands/hugo_printpathwarnings.txt @@ -5,9 +5,9 @@ stderr 'Duplicate target paths: .index.html \(2\)' -- hugo.toml -- disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404", "section"] baseURL = "https://example.org/" --- layouts/_default/single.html -- +-- layouts/single.html -- Single. --- layouts/index.html -- +-- layouts/home.html -- Home. -- content/p1.md -- --- diff --git a/testscripts/commands/hugo_printunusedtemplates.txt b/testscripts/commands/hugo_printunusedtemplates.txt index a7a5d87c3..f25a631c7 100644 --- a/testscripts/commands/hugo_printunusedtemplates.txt +++ b/testscripts/commands/hugo_printunusedtemplates.txt @@ -5,7 +5,7 @@ stderr 'Template /list.html is unused' -- hugo.toml -- disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404", "section", "page"] baseURL = "https://example.org/" --- layouts/index.html -- +-- layouts/home.html -- Home. --- layouts/_default/list.html -- +-- layouts/list.html -- {{ errorf "unused template: %s" .Kind }} diff --git a/testscripts/commands/server.txt b/testscripts/commands/server.txt index 5b2a2544d..cd843a1de 100644 --- a/testscripts/commands/server.txt +++ b/testscripts/commands/server.txt @@ -23,7 +23,7 @@ disableKinds = ["taxonomy", "term", "sitemap"] myenv = "theproduction" -- config/development/params.toml -- myenv = "thedevelopment" --- layouts/index.html -- +-- layouts/home.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|ServerPort: {{ site.ServerPort }}|myenv: {{ .Site.Params.myenv }}|Env: {{ hugo.Environment }}|IsServer: {{ hugo.IsServer }}| diff --git a/testscripts/commands/server__edit_config.txt b/testscripts/commands/server__edit_config.txt index 3997ca895..983c4d3be 100644 --- a/testscripts/commands/server__edit_config.txt +++ b/testscripts/commands/server__edit_config.txt @@ -37,7 +37,7 @@ languageName = "Nynorsk" title = "Hugo Nynorsk Server Test" weight = 2 --- layouts/index.html -- +-- layouts/home.html -- Title: {{ .Title }}|BaseURL: {{ .Permalink }}| diff --git a/testscripts/commands/server__edit_content.txt b/testscripts/commands/server__edit_content.txt index 0aca2e892..49cfe8c1a 100644 --- a/testscripts/commands/server__edit_content.txt +++ b/testscripts/commands/server__edit_content.txt @@ -32,9 +32,9 @@ stopServer title = "Hugo Server Test" baseURL = "https://example.org/" disableKinds = ["taxonomy", "term", "sitemap"] --- layouts/index.html -- +-- layouts/home.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| --- layouts/_default/single.html -- +-- layouts/single.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| -- content/_index.md -- --- diff --git a/testscripts/commands/server__error_recovery_edit_config.txt b/testscripts/commands/server__error_recovery_edit_config.txt index 664d99272..6cbdfeb9d 100644 --- a/testscripts/commands/server__error_recovery_edit_config.txt +++ b/testscripts/commands/server__error_recovery_edit_config.txt @@ -19,9 +19,9 @@ stopServer title = "Hugo Server Test" baseURL = "https://example.org/" disableKinds = ["taxonomy", "term", "sitemap"] --- layouts/index.html -- +-- layouts/home.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| --- layouts/_default/single.html -- +-- layouts/single.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| -- content/_index.md -- --- diff --git a/testscripts/commands/server__error_recovery_edit_content.txt b/testscripts/commands/server__error_recovery_edit_content.txt index e640cd8f3..c95a9ab03 100644 --- a/testscripts/commands/server__error_recovery_edit_content.txt +++ b/testscripts/commands/server__error_recovery_edit_content.txt @@ -19,9 +19,9 @@ stopServer title = "Hugo Server Test" baseURL = "https://example.org/" disableKinds = ["taxonomy", "term", "sitemap"] --- layouts/index.html -- +-- layouts/home.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| --- layouts/_default/single.html -- +-- layouts/single.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| -- content/_index.md -- --- diff --git a/testscripts/commands/server__multihost.txt b/testscripts/commands/server__multihost.txt index 2b8421e15..9a974ee01 100644 --- a/testscripts/commands/server__multihost.txt +++ b/testscripts/commands/server__multihost.txt @@ -41,7 +41,7 @@ baseURL = "https://fr.example.org/" title = "Hugo Serveur Test" languageName = "Français" weight = 2 --- layouts/index.html -- +-- layouts/home.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| -- static/en/mystatic/mytext.txt -- en_mytext diff --git a/testscripts/commands/server__watch_hugo_stats.txt b/testscripts/commands/server__watch_hugo_stats.txt index da4ffc19f..f187c8281 100644 --- a/testscripts/commands/server__watch_hugo_stats.txt +++ b/testscripts/commands/server__watch_hugo_stats.txt @@ -14,5 +14,5 @@ disableKinds = ["taxonomy", "term", "sitemap"] [[module.mounts]] source = "hugo_stats.json" target = "assets/watching/hugo_stats.json" --- layouts/index.html -- +-- layouts/home.html -- Home diff --git a/testscripts/commands/server__watch_moduleconfig.txt b/testscripts/commands/server__watch_moduleconfig.txt index bd84a1449..733fefdce 100644 --- a/testscripts/commands/server__watch_moduleconfig.txt +++ b/testscripts/commands/server__watch_moduleconfig.txt @@ -12,7 +12,7 @@ title = "Hugo Server Test" baseURL = "https://example.org/" disableKinds = ["section", "page", "taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404"] theme = "mytheme" --- layouts/index.html -- +-- layouts/home.html -- foo: {{ .Site.Params.foo }} -- themes/mytheme/hugo.toml -- [params] diff --git a/testscripts/commands/server_disablelivereload.txt b/testscripts/commands/server_disablelivereload.txt index f3f163c83..59e69a512 100644 --- a/testscripts/commands/server_disablelivereload.txt +++ b/testscripts/commands/server_disablelivereload.txt @@ -10,7 +10,7 @@ stopServer -- hugo.toml -- baseURL = "http://example.org/" disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] --- layouts/index.html -- +-- layouts/home.html -- diff --git a/testscripts/commands/server_disablelivereload__config.txt b/testscripts/commands/server_disablelivereload__config.txt index a71cde12b..91e0a3534 100644 --- a/testscripts/commands/server_disablelivereload__config.txt +++ b/testscripts/commands/server_disablelivereload__config.txt @@ -11,7 +11,7 @@ stopServer baseURL = "http://example.org/" disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] disableLiveReload = true --- layouts/index.html -- +-- layouts/home.html -- diff --git a/testscripts/commands/server_render_static_to_disk.txt b/testscripts/commands/server_render_static_to_disk.txt index b4c7b1303..855898e9c 100644 --- a/testscripts/commands/server_render_static_to_disk.txt +++ b/testscripts/commands/server_render_static_to_disk.txt @@ -44,7 +44,7 @@ weight = 2 This is a static file in English. -- static/en/mystatic.txt -- This is a static file in English. --- layouts/index.html -- +-- layouts/home.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| diff --git a/testscripts/commands/server_render_to_memory.txt b/testscripts/commands/server_render_to_memory.txt index afff92126..8eca38778 100644 --- a/testscripts/commands/server_render_to_memory.txt +++ b/testscripts/commands/server_render_to_memory.txt @@ -20,7 +20,7 @@ baseURL = "https://example.org/" disableKinds = ["taxonomy", "term", "sitemap"] -- static/mystatic.txt -- This is a static file. --- layouts/index.html -- +-- layouts/home.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| diff --git a/testscripts/commands/warnf_stderr.txt b/testscripts/commands/warnf_stderr.txt index f899253c5..4c939b298 100644 --- a/testscripts/commands/warnf_stderr.txt +++ b/testscripts/commands/warnf_stderr.txt @@ -7,7 +7,7 @@ stderr 'warning' -- hugo.toml -- baseURL = "http://example.org/" disableKinds = ["RSS", "page", "sitemap", "robotsTXT", "404", "taxonomy", "term"] --- layouts/index.html -- +-- layouts/home.html -- Home {{ warnf "This is a warning" }} -- 2.39.5