_build is deprecated and now shows up as warning.
---
title: s
cascade:
- _build:
+ build:
render: never
---
-- content/s/p1.md --
`, "sect/no-list.md", `
---
title: No List
-_build:
+build:
list: false
---
`, "sect/no-render.md", `
---
title: No List
-_build:
+build:
render: false
---
`,
---
title: No Render Link
aliases: ["/link-alias"]
-_build:
+build:
render: link
---
`,
"sect/no-publishresources/index.md", `
---
title: No Publish Resources
-_build:
+build:
publishResources: false
---
---
title: Headless Local Lists
cascade:
- _build:
+ build:
render: false
list: local
publishResources: false
`)
b.WithContent("section/bundle-false/index.md", `---\ntitle: BundleFalse
-_build:
+build:
publishResources: false
---`,
"section/bundle-false/data1.json", "Some data1",
noRenderPage := `
---
title: %s
-_build:
+build:
render: false
publishResources: false
---
)
}
-func TestFrontMatterParamsKindPath(t *testing.T) {
+func TestFrontMatterParamsPath(t *testing.T) {
t.Parallel()
files := `
path: "/a/b/c"
slug: "s1"
---
--- content/mysection.md --
+-- content/mysection/_index.md --
---
title: "My Section"
-kind: "section"
date: 2022-08-07
path: "/a/b"
---
weight = "5"
title = "Five"
-[_build]
+[build]
render = "never"
+++
Front Matter with Ordered Pages 5`
c := qt.New(t)
configTempl := `
-[_build]
+[build]
render = %s
list = %s
publishResources = true`
} {
cfg, err := config.FromConfigString(fmt.Sprintf(configTempl, test.args...), "toml")
c.Assert(err, qt.IsNil)
- bcfg, err := DecodeBuildConfig(cfg.Get("_build"))
+ bcfg, err := DecodeBuildConfig(cfg.Get("build"))
c.Assert(err, qt.IsNil)
eq := qt.CmpEquals(hqt.DeepAllowUnexported(BuildConfig{}))