-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
This is essentially the same as #12055, but with build options instead of the draft flag.
This test (the file content part) fails:
func TestFoo(t *testing.T) {
t.Parallel()
files := `
-- layouts/index.html --
|{{ len site.Taxonomies.tags }}|
-- content/p1.md --
---
title: p1
tags: [a]
---
-- content/tags/a/_index.md --
---
title: tag-a-title-override
build:
render: never
list: never
---
`
b := hugolib.Test(t, files)
b.AssertFileContent("public/index.html", "|0|")
b.AssertFileExists("public/tags/a/index.html", false)
}
To me, these should be equivalent:
content/tags/tag-a/_index.md
+++
title = 'My Tag A'
draft = true
+++
+++
title = 'My Tag A'
[build]
render = 'never'
list = 'never'
+++
In both cases (a) the page should not be published, and (b) the term should not be a member of the "tags" taxonomy object.