When using latest released hugo version 0.153.0, I was confronted with this message:
INFO deprecated: module.mounts.lang was deprecated in Hugo v0.153.0 and will be removed in a future release. Replaced by the more powerful 'sites.matrix' setting, see https://gohugo.io/configuration/module/#mounts
It turned out that this warning was emitted due to the use of the contentDir setting in the languages section of my hugo.yaml:
languages:
en:
contentDir: content/en
I created a minimal repo on GitHub that demonstrates the issue:
Is the setting contentDir in a languages section deprecated now?
But as we have added more than one dimension to the file mounts (language, version, role), it makes sense to consolidate all these into the … file mount configuration. This is legacy config that we’re slowly getting rid of, hence the deprecations.