hugolib: Add validation for defaultContentLanguage
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 19 Jan 2018 07:24:10 +0000 (08:24 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 19 Jan 2018 07:24:10 +0000 (08:24 +0100)
commit4d5e4f379a890a3c6cbc11ddb40d77a90f14c015
treee016d93823f0c9c90b879792eda359d43be23e4e
parentcd77968284c64525c351f0b99466ad2ef29657e5
hugolib: Add validation for defaultContentLanguage

When `languages` are defined, then `defaultContentLanguage` must match one of those.

Fixes #4298
hugolib/config.go