Skip to content

hugolib: Content placeholder uses deprecated _build key #13655

@jmooring

Description

@jmooring

In the next minor release (0.148.0), this warning will appear when you create new content:

WARN deprecated: The "_build" front matter key was deprecated in Hugo 0.145.0 and will be removed in a future release. Use "build" instead. See https://gohugo.io/content-management/build-options.

The warning was implemented in #1344, where I neglected to change this:

// This will be overwritten later, just write a placeholder to get
// the paths correct.
placeholder := `---
title: "Content Placeholder"
_build:
render: never
list: never
publishResources: false
---

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions