Skip to content

Commit d0ce942

Browse files
jmooringbep
authored andcommitted
hugolib: Deprecate _build front matter key in favor of build
We effectively aliased "_build" to "build" in v0.123.0, and removed "_build" from the documentation at the same time.
1 parent 4fd7f32 commit d0ce942

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hugolib/page__meta.go

+1
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ func (p *pageState) setMetaPostParams() error {
430430
var buildConfig any
431431
var isNewBuildKeyword bool
432432
if v, ok := pm.pageConfig.Params["_build"]; ok {
433+
hugo.Deprecate("The \"_build\" front matter key", "Use \"build\" instead. See https://gohugo.io/content-management/build-options.", "0.145.0")
433434
buildConfig = v
434435
} else {
435436
buildConfig = pm.pageConfig.Params["build"]

0 commit comments

Comments
 (0)