@@ -112,7 +112,8 @@ docs/p1/sub/mymixcasetext2.txt
112112 // Page from markdown file.
113113 b .AssertFileContent ("public/docs/pfile/index.html" , "Dates: Date: 2023-03-01|Lastmod: 2023-03-01|PublishDate: 2023-03-01|ExpiryDate: 0001-01-01|" )
114114 // Pages from gotmpl.
115- b .AssertFileContent ("public/docs/p1/index.html" ,
115+ b .AssertFileContent (
116+ "public/docs/p1/index.html" ,
116117 "Single: p1:p1|" ,
117118 "Path: /docs/p1|" ,
118119 "<strong>Hello World</strong>" ,
@@ -125,7 +126,7 @@ docs/p1/sub/mymixcasetext2.txt
125126 "RelPermalink: /docs/p1/sub/mymixcasetext2.txt|Name: sub/mymixcasetext2.txt|" ,
126127 "RelPermalink: /mydata.yaml|Name: sub/data1.yaml|Title: Sub data|Params: map[]|" ,
127128 "Featured Image: /a/pixel.png|featured.png|" ,
128- "Resized Featured Image: /a/pixel_hu_a354833fd576551d .png|10|" ,
129+ "Resized Featured Image: /a/pixel_hu_51638841a22bb583 .png|10|" ,
129130 // Resource from string
130131 "RelPermalink: /docs/p1/mytext.txt|Name: textresource|Title: My Text Resource|Params: map[param1:param1v]|" ,
131132 // Dates
@@ -174,25 +175,29 @@ allow = [%s]
174175 b := hugolib .Test (t , files )
175176
176177 if supportsAsciiDoc {
177- b .AssertFileContent ("public/docs/asciidoc/index.html" ,
178+ b .AssertFileContent (
179+ "public/docs/asciidoc/index.html" ,
178180 "Mark my words, <mark>automation is essential</mark>" ,
179181 "Path: /docs/asciidoc|" ,
180182 )
181183 }
182184 if supportsPandoc {
183- b .AssertFileContent ("public/docs/pandoc/index.html" ,
185+ b .AssertFileContent (
186+ "public/docs/pandoc/index.html" ,
184187 "This <del>is deleted text.</del>" ,
185188 "Path: /docs/pandoc|" ,
186189 )
187190 }
188191 if supportsRst {
189- b .AssertFileContent ("public/docs/rst/index.html" ,
192+ b .AssertFileContent (
193+ "public/docs/rst/index.html" ,
190194 "This is <em>bold</em>" ,
191195 "Path: /docs/rst|" ,
192196 )
193197 }
194198
195- b .AssertFileContent ("public/docs/org/index.html" ,
199+ b .AssertFileContent (
200+ "public/docs/org/index.html" ,
196201 "the ability to use <del>strikethrough</del> is a plus" ,
197202 "Path: /docs/org|" ,
198203 )
@@ -305,14 +310,16 @@ func TestPagesFromGoTmplMovePage(t *testing.T) {
305310func TestPagesFromGoTmplRemoveGoTmpl (t * testing.T ) {
306311 t .Parallel ()
307312 b := hugolib .TestRunning (t , filesPagesFromDataTempleBasic )
308- b .AssertFileContent ("public/index.html" ,
313+ b .AssertFileContent (
314+ "public/index.html" ,
309315 "RegularPagesRecursive: p1:p1:/docs/p1|p2title:/docs/p2|p3title:/docs/p3|p4title:/docs/p4|pfile:/docs/pfile|$" ,
310316 "Sections: Docs:/docs|" ,
311317 )
312318 b .AssertFileContent ("public/docs/index.html" , "RegularPagesRecursive: p1:p1:/docs/p1|p2title:/docs/p2|p3title:/docs/p3|p4title:/docs/p4|pfile:/docs/pfile|$" )
313319 b .RemoveFiles ("content/docs/_content.gotmpl" ).Build ()
314320 // One regular page left.
315- b .AssertFileContent ("public/index.html" ,
321+ b .AssertFileContent (
322+ "public/index.html" ,
316323 "RegularPagesRecursive: pfile:/docs/pfile|$" ,
317324 "Sections: Docs:/docs|" ,
318325 )
@@ -596,7 +603,8 @@ disableKinds = ['home','section','rss','sitemap','taxonomy','term']
596603
597604 b := hugolib .Test (t , files )
598605
599- b .AssertFileContent ("public/p1/index.html" ,
606+ b .AssertFileContent (
607+ "public/p1/index.html" ,
600608 "p1|param1v" ,
601609 "data1.yaml|param1v" ,
602610 )
@@ -651,7 +659,8 @@ Footer: {{ range index site.Menus.footer }}{{ .Name }}|{{ end }}|
651659`
652660 b := hugolib .Test (t , files )
653661
654- b .AssertFileContent ("public/index.html" ,
662+ b .AssertFileContent (
663+ "public/index.html" ,
655664 "Main: Main|p1|p2||" ,
656665 "Footer: Footer|p2||" ,
657666 )
@@ -706,7 +715,8 @@ summary: {{ .Summary }}|content: {{ .Content}}
706715
707716 b := hugolib .Test (t , files )
708717
709- b .AssertFileContent ("public/s1/p1/index.html" ,
718+ b .AssertFileContent (
719+ "public/s1/p1/index.html" ,
710720 "<p>aaa</p>|content: <p>aaa</p>\n <p>bbb</p>" ,
711721 )
712722}
0 commit comments