]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
testscripts: Move layouts file to new structure
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 27 Nov 2025 19:41:56 +0000 (20:41 +0100)
committerGitHub <noreply@github.com>
Thu, 27 Nov 2025 19:41:56 +0000 (20:41 +0100)
28 files changed:
testscripts/commands/deprecate.txt
testscripts/commands/hugo.txt
testscripts/commands/hugo__path-warnings-postprocess.txt
testscripts/commands/hugo__path-warnings.txt
testscripts/commands/hugo__path-warnings_issue13164.txt
testscripts/commands/hugo__processingstats.txt
testscripts/commands/hugo__processingstats2.txt
testscripts/commands/hugo__publishdir_in_config.txt
testscripts/commands/hugo__watch.txt
testscripts/commands/hugo_build.txt
testscripts/commands/hugo_configdev_env.txt
testscripts/commands/hugo_configdev_environment.txt
testscripts/commands/hugo_configprod.txt
testscripts/commands/hugo_printpathwarnings.txt
testscripts/commands/hugo_printunusedtemplates.txt
testscripts/commands/server.txt
testscripts/commands/server__edit_config.txt
testscripts/commands/server__edit_content.txt
testscripts/commands/server__error_recovery_edit_config.txt
testscripts/commands/server__error_recovery_edit_content.txt
testscripts/commands/server__multihost.txt
testscripts/commands/server__watch_hugo_stats.txt
testscripts/commands/server__watch_moduleconfig.txt
testscripts/commands/server_disablelivereload.txt
testscripts/commands/server_disablelivereload__config.txt
testscripts/commands/server_render_static_to_disk.txt
testscripts/commands/server_render_to_memory.txt
testscripts/commands/warnf_stderr.txt

index 8791c3a78748a2af7666de721ed082ab75cb8442..0ac6cc2a8885ab473c8d05056f7a7ca79634ded1 100644 (file)
@@ -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" }}
index bf0f5cf0d39dcf2d4e4ce0e703af6fed8234fd57..bb44e41170e70f25eb22d0bb6be84da01874db67 100644 (file)
@@ -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 --
 ---
index 0677da084c5292021d6b7cefbd35649a1d9c680f..c3f37630c557af1121ce981fdf56f8c6fc6a7b4a 100644 (file)
@@ -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 }}
index 8eccb6567c70fc370569782094db1701eb39e4fc..81636addab68a7a89af03c54196b6260b32242c1 100644 (file)
@@ -19,8 +19,8 @@ url: /p1/
 ---
 url: /p1/
 ---
--- layouts/index.html --
+-- layouts/home.html --
 Home.
--- layouts/_default/single.html --
+-- layouts/single.html --
 Single.
 
index 1342c287a61b9448206c6cc89b2cfeaeb4aae076..b374df2f8b012b4302243dcda8c61b7316de521a 100644 (file)
@@ -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 }}
index 3d30b81554ec21aeac3f3226efa055d7f945ecdb..4d683a1be21f4ac6192cb9ef2f8032d30186174e 100644 (file)
@@ -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" }}
index 2f8226faa0b838993d582b3d6f682782fb783f34..9857bb4cc37f7374740ee090a183f075389388d1 100644 (file)
@@ -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.
 
index e57d4ad2fe1f5eacd12974cb728fd46540a0e91d..e1914ea0bd5e0a197e1c23e801dbf88b80309d57 100644 (file)
@@ -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.
index aa5201c5666bc98e8c6f04d1cf6ec6afa59aa894..34538f12307f76791a964b99525e9e27317b2d84 100644 (file)
@@ -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 --
 ---
index 0bcbcba7ad3c74011f43313fc3fde1ed8bec805f..400102d0d7320f94607c692bd4e31038a7a98f9a 100644 (file)
@@ -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 --
 ---
index 758f4fc96435726ceec28640469fbe798145601d..8c71d1fbaa05356f3f293e672291ea4ef99d44e3 100644 (file)
@@ -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"
index 037148178c963be374a8978b874d05925db967c0..0be8e0d8be3f0802af4d506e005171d24a391554 100644 (file)
@@ -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"
index ac046b205709819a04119b6dfdb7b606e2a21a49..9af516bd3c29f5ab79e1a171acd96a2fff7cfc27 100644 (file)
@@ -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"
index 51eb46d910c6b1f496e01c9f690ec26162708b50..437a5a7ab499a7e985124c624fb63bae076f744e 100644 (file)
@@ -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 --
 ---
index a7a5d87c3a9ded26c3577b6fb37cb4330a7d6642..f25a631c71ea12348c45bda87de3357e47f1cc2c 100644 (file)
@@ -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 }}
index 5b2a2544d1150d73050dcb92c54e6aaba5c1b5b7..cd843a1deaf663cfe5e0d8fc673d211484d3f5f3 100644 (file)
@@ -23,7 +23,7 @@ disableKinds = ["taxonomy", "term", "sitemap"]
 myenv = "theproduction"
 -- config/development/params.toml --
 myenv = "thedevelopment"
--- layouts/index.html --
+-- layouts/home.html --
 <!DOCTYPE html>
 <body>
 Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|ServerPort: {{ site.ServerPort }}|myenv: {{ .Site.Params.myenv }}|Env: {{ hugo.Environment }}|IsServer: {{ hugo.IsServer }}|
index 3997ca895a9a88a163d4d641294f65df6c801b23..983c4d3be6b206c4e2454bcc4949299603785235 100644 (file)
@@ -37,7 +37,7 @@ languageName = "Nynorsk"
 title = "Hugo Nynorsk Server Test"
 weight = 2
 
--- layouts/index.html --
+-- layouts/home.html --
 Title: {{ .Title }}|BaseURL: {{ .Permalink }}|
 
 
index 0aca2e892fabe0b197b746f93754e3005bd96393..49cfe8c1a1509a69ee5463a7210bf2e01ec5bf70 100644 (file)
@@ -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 --
 ---
index 664d992721528ac83b77016c035fd75fc11a51ad..6cbdfeb9d03b985752083da9c5993820a1a213f0 100644 (file)
@@ -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 --
 ---
index e640cd8f383bac11323e75ad0dee1736908ee15f..c95a9ab03674b2c295f92358bf0d5608c6b1a806 100644 (file)
@@ -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 --
 ---
index 2b8421e15b07e6f71006b54b0a859436e741be6c..9a974ee01b04c1fe764b5a1e64b1c7c8daf807b5 100644 (file)
@@ -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
index da4ffc19f40d061299b2760db511d4529f459b0f..f187c82812f820ebb29422ff1816e611fb0127a2 100644 (file)
@@ -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 --
 <body>Home</body>
index bd84a1449f03bd50f521c7bdbff57281a9ff2ef9..733fefdcebdffb5a9010d19281c51af2cca04053 100644 (file)
@@ -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]
index f3f163c830b796592de2fd53480fabe246bb999c..59e69a5120afdff07b49a9e85dab795973b61217 100644 (file)
@@ -10,7 +10,7 @@ stopServer
 -- hugo.toml --
 baseURL = "http://example.org/"
 disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
--- layouts/index.html --
+-- layouts/home.html --
 <html>
 <head>
 </head>
index a71cde12b59adbd8fd25ff720ad41e90b49264c7..91e0a35344d49641199bcd4d4505c901ce07f83d 100644 (file)
@@ -11,7 +11,7 @@ stopServer
 baseURL = "http://example.org/"
 disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
 disableLiveReload = true
--- layouts/index.html --
+-- layouts/home.html --
 <html>
 <head>
 </head>
index b4c7b13033a9a9105c280c031637124724582e4f..855898e9c21a506b65b4bfe3c81320e8d4630c3f 100644 (file)
@@ -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 }}|
 
 
index afff92126b3680f922bb359d2d7aa3d60341a21b..8eca387788554f3754849fa5d8b41f1df89cb40b 100644 (file)
@@ -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 }}|
 
 
index f899253c5dbeecd2fa8bdcde84a93847dfa64331..4c939b2984779b1d6f5a43925af3ca5ffc4369a2 100644 (file)
@@ -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" }}