When a content file has a lang key under cascade.params in its front matter, Hugo reports the following error and build fails:
ERROR deprecated: lang in front matter was deprecated in Hugo v0.144.0 and subsequently removed.
This doesn't seem to happen if lang is defined under "normal" params in each page front matter.
How to reproduce
Create a content file with a lang key under cascade.params in the front matter:
---
cascade:
params:
lang: en
---
ABC
Then run the following commands:
hugo new project quickstart
cd quickstart
# Add the markdown file above as content.
# ...
git init
git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
hugo server --theme PaperMod
What version of Hugo are you using (hugo version)?
$ hugo version
hugo v0.161.1-ea8f66a7ce988664dcc84c052fc96757042e2e4a windows/amd64 BuildDate=2026-04-29T13:56:01Z VendorInfo=gohugoio
Does this issue reproduce with the latest release?
Yes.
When a content file has a
langkey undercascade.paramsin its front matter, Hugo reports the following error and build fails:This doesn't seem to happen if
langis defined under "normal"paramsin each page front matter.How to reproduce
Create a content file with a lang key under cascade.params in the front matter:
Then run the following commands:
What version of Hugo are you using (
hugo version)?Does this issue reproduce with the latest release?
Yes.