mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
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.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
4fd7f3233f
commit
d0ce942190
@@ -430,6 +430,7 @@ func (p *pageState) setMetaPostParams() error {
|
|||||||
var buildConfig any
|
var buildConfig any
|
||||||
var isNewBuildKeyword bool
|
var isNewBuildKeyword bool
|
||||||
if v, ok := pm.pageConfig.Params["_build"]; ok {
|
if v, ok := pm.pageConfig.Params["_build"]; ok {
|
||||||
|
hugo.Deprecate("The \"_build\" front matter key", "Use \"build\" instead. See https://gohugo.io/content-management/build-options.", "0.145.0")
|
||||||
buildConfig = v
|
buildConfig = v
|
||||||
} else {
|
} else {
|
||||||
buildConfig = pm.pageConfig.Params["build"]
|
buildConfig = pm.pageConfig.Params["build"]
|
||||||
|
Reference in New Issue
Block a user