Skip to content

Commit 45b67f6

Browse files
authored
testscripts: Move layouts file to new structure
1 parent 5e649eb commit 45b67f6

28 files changed

+43
-43
lines changed

‎testscripts/commands/deprecate.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ stderr 'ERROR deprecated: item was deprecated in Hugo'
1212
-- hugo.toml --
1313
baseURL = "https://example.com/"
1414
disableKinds = ["taxonomy", "term"]
15-
-- layouts/index.html --
15+
-- layouts/home.html --
1616
Deprecate:
1717
{{ if eq hugo.Environment "info" }}
1818
{{ debug.TestDeprecationInfo "item" "alternative" }}

‎testscripts/commands/hugo.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ grep 'IsServer: false;IsProduction: true' public/index.html
1010
-- hugo.toml --
1111
baseURL = "http://example.org/"
1212
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
13-
-- layouts/index.html --
13+
-- layouts/home.html --
1414
Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
15-
-- layouts/_default/single.html --
15+
-- layouts/single.html --
1616
Title: {{ .Title }}
1717
-- content/p1.md --
1818
---

‎testscripts/commands/hugo__path-warnings-postprocess.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ body {
1010
-- content/p1.md --
1111
-- content/p2.md --
1212
-- content/p3.md --
13-
-- layouts/index.html --
13+
-- layouts/home.html --
1414
Home.
15-
-- layouts/_default/single.html --
15+
-- layouts/single.html --
1616
{{ $css := resources.Get "css/styles.css" }}
1717
{{ $css := $css | minify | fingerprint | resources.PostProcess }}
1818
CSS: {{ $css.RelPermalink }}

‎testscripts/commands/hugo__path-warnings.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ url: /p1/
1919
---
2020
url: /p1/
2121
---
22-
-- layouts/index.html --
22+
-- layouts/home.html --
2323
Home.
24-
-- layouts/_default/single.html --
24+
-- layouts/single.html --
2525
Single.
2626

‎testscripts/commands/hugo__path-warnings_issue13164.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hugo --printPathWarnings
66
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
77
-- assets/foo.txt --
88
foo
9-
-- layouts/index.html --
9+
-- layouts/home.html --
1010
A: {{ (resources.Get "foo.txt").RelPermalink }}
1111
B: {{ (resources.GetMatch "foo.txt").RelPermalink }}
1212
C: {{ (index (resources.Match "foo.txt") 0).RelPermalink }}

‎testscripts/commands/hugo__processingstats.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ baseURL = "https://example.com/"
3939
weight = 2
4040
title = "French Title"
4141
contentDir = "content/fr"
42-
-- layouts/index.html --
42+
-- layouts/home.html --
4343
Home.
44-
-- layouts/_default/single.html --
44+
-- layouts/single.html --
4545
Single.
4646
{{ range .Resources }}
4747
{{ $img := .Resize "3x" }}

‎testscripts/commands/hugo__processingstats2.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ stdout 'Non-page files.*/| 2\s'
99
-- content/posts/post-1/index.md --
1010
-- hugo.toml --
1111
baseURL = "https://example.com/"
12-
-- layouts/_default/list.html --
12+
-- layouts/list.html --
1313
List.
14-
-- layouts/_default/single.html --
14+
-- layouts/single.html --
1515
Single.
1616

‎testscripts/commands/hugo__publishdir_in_config.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ grep 'Home' newpublic/index.html
88
baseURL = "http://example.org/"
99
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
1010
publishDir = "newpublic"
11-
-- layouts/index.html --
11+
-- layouts/home.html --
1212
Home.

‎testscripts/commands/hugo__watch.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ stop
1818
-- hugo.toml --
1919
baseURL = "http://example.org/"
2020
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
21-
-- layouts/index.html --
21+
-- layouts/home.html --
2222
Home.
23-
-- layouts/_default/single.html --
23+
-- layouts/single.html --
2424
Title: {{ .Title }}| {{ .Content }}
2525
-- content/p1.md --
2626
---

‎testscripts/commands/hugo_build.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ grep 'IsServer: false;IsProduction: true' public/index.html
1010
-- hugo.toml --
1111
baseURL = "http://example.org/"
1212
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
13-
-- layouts/index.html --
13+
-- layouts/home.html --
1414
Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
15-
-- layouts/_default/single.html --
15+
-- layouts/single.html --
1616
Title: {{ .Title }}
1717
-- content/p1.md --
1818
---

0 commit comments

Comments
 (0)