File tree Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -57,43 +57,6 @@ Summary: {{ .Summary }}|
5757 )
5858}
5959
60- func TestFrontMatterParamsPath (t * testing.T ) {
61- t .Parallel ()
62-
63- files := `
64- -- hugo.toml --
65- baseURL = "https://example.org/"
66- disableKinds = ["taxonomy", "term"]
67-
68- -- content/p1.md --
69- ---
70- title: "P1"
71- date: 2019-08-07
72- path: "/a/b/c"
73- slug: "s1"
74- ---
75- -- content/mysection/_index.md --
76- ---
77- title: "My Section"
78- date: 2022-08-07
79- path: "/a/b"
80- ---
81- -- layouts/index.html --
82- RegularPages: {{ range site.RegularPages }}{{ .Path }}|{{ .RelPermalink }}|{{ .Title }}|{{ .Date.Format "2006-02-01" }}| Slug: {{ .Params.slug }}|{{ end }}$
83- Sections: {{ range site.Sections }}{{ .Path }}|{{ .RelPermalink }}|{{ .Title }}|{{ .Date.Format "2006-02-01" }}| Slug: {{ .Params.slug }}|{{ end }}$
84- {{ $ab := site.GetPage "a/b" }}
85- a/b pages: {{ range $ab.RegularPages }}{{ .Path }}|{{ .RelPermalink }}|{{ end }}$
86- `
87-
88- b := Test (t , files )
89-
90- b .AssertFileContent ("public/index.html" ,
91- "RegularPages: /a/b/c|/a/b/s1/|P1|2019-07-08| Slug: s1|$" ,
92- "Sections: /a|/a/|As" ,
93- "a/b pages: /a/b/c|/a/b/s1/|$" ,
94- )
95- }
96-
9760func TestFrontMatterParamsLangNoCascade (t * testing.T ) {
9861 t .Parallel ()
9962
You can’t perform that action at this time.
0 commit comments