mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
all: Replace _build with build in tests
_build is deprecated and now shows up as warning.
This commit is contained in:
@@ -44,14 +44,14 @@ tags: ["mytag"]
|
||||
`, "sect/no-list.md", `
|
||||
---
|
||||
title: No List
|
||||
_build:
|
||||
build:
|
||||
list: false
|
||||
---
|
||||
|
||||
`, "sect/no-render.md", `
|
||||
---
|
||||
title: No List
|
||||
_build:
|
||||
build:
|
||||
render: false
|
||||
---
|
||||
`,
|
||||
@@ -59,14 +59,14 @@ _build:
|
||||
---
|
||||
title: No Render Link
|
||||
aliases: ["/link-alias"]
|
||||
_build:
|
||||
build:
|
||||
render: link
|
||||
---
|
||||
`,
|
||||
"sect/no-publishresources/index.md", `
|
||||
---
|
||||
title: No Publish Resources
|
||||
_build:
|
||||
build:
|
||||
publishResources: false
|
||||
---
|
||||
|
||||
@@ -81,7 +81,7 @@ headless: true
|
||||
---
|
||||
title: Headless Local Lists
|
||||
cascade:
|
||||
_build:
|
||||
build:
|
||||
render: false
|
||||
list: local
|
||||
publishResources: false
|
||||
@@ -365,7 +365,7 @@ Data1: {{ $data1.RelPermalink }}
|
||||
`)
|
||||
|
||||
b.WithContent("section/bundle-false/index.md", `---\ntitle: BundleFalse
|
||||
_build:
|
||||
build:
|
||||
publishResources: false
|
||||
---`,
|
||||
"section/bundle-false/data1.json", "Some data1",
|
||||
@@ -388,7 +388,7 @@ func TestNoRenderAndNoPublishResources(t *testing.T) {
|
||||
noRenderPage := `
|
||||
---
|
||||
title: %s
|
||||
_build:
|
||||
build:
|
||||
render: false
|
||||
publishResources: false
|
||||
---
|
||||
|
Reference in New Issue
Block a user