mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03:00
Deprecate kind, lang, and path from front matter
These were added to the page meta object when we implemented "pages from data", but were not meant to be used in front matter. That is not supported, so we might as well add validation. Fixes #12484
This commit is contained in:
parent
e6feb9e0be
commit
9b5f786df8
9 changed files with 57 additions and 13 deletions
|
@ -22,7 +22,7 @@ import (
|
|||
)
|
||||
|
||||
func TestCommentShortcode(t *testing.T) {
|
||||
t.Parallel()
|
||||
// This cannot be parallel as it depends on output from the global logger.
|
||||
|
||||
files := `
|
||||
-- hugo.toml --
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue