hugolib: Remove deprecated useModTimeAsFallback

This commit is contained in:
Bjørn Erik Pedersen 2018-11-01 21:14:30 +01:00
parent faeb55c1d8
commit 0bc4b0246d
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -473,7 +473,6 @@ func loadDefaultSettingsFor(v *viper.Viper) error {
v.SetDefault("hasCJKLanguage", false)
v.SetDefault("enableEmoji", false)
v.SetDefault("pygmentsCodeFencesGuessSyntax", false)
v.SetDefault("useModTimeAsFallback", false)
v.SetDefault("defaultContentLanguage", "en")
v.SetDefault("defaultContentLanguageInSubdir", false)
v.SetDefault("enableMissingTranslationPlaceholders", false)
@ -484,18 +483,5 @@ func loadDefaultSettingsFor(v *viper.Viper) error {
v.SetDefault("disableFastRender", false)
v.SetDefault("timeout", 10000) // 10 seconds
// Remove in Hugo 0.50
if v.GetBool("useModTimeAsFallback") {
helpers.Deprecated("Site config", "useModTimeAsFallback", `Replace with this in your config.toml:
[frontmatter]
date = [ "date",":fileModTime", ":default"]
lastmod = ["lastmod" ,":fileModTime", ":default"]
`, true)
}
return nil
}