hugolib: Deprecate useModTimeAsFallback

Fixes #4351
This commit is contained in:
Bjørn Erik Pedersen 2018-01-29 13:52:04 +01:00
parent 25d691daff
commit adfd4370b6
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -250,5 +250,11 @@ func loadDefaultSettingsFor(v *viper.Viper) error {
v.SetDefault("debug", false)
v.SetDefault("disableFastRender", false)
// Remove in Hugo 0.37
if v.GetBool("useModTimeAsFallback") {
helpers.Deprecated("Site config", "useModTimeAsFallback", "Try --enableGitInfo or set lastMod in front matter", false)
}
return loadLanguageSettings(v, nil)
}