mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 07:32:04 -05:00
hugolib: Remove deprecated useModTimeAsFallback
This commit is contained in:
parent
faeb55c1d8
commit
0bc4b0246d
1 changed files with 0 additions and 14 deletions
|
@ -473,7 +473,6 @@ func loadDefaultSettingsFor(v *viper.Viper) error {
|
||||||
v.SetDefault("hasCJKLanguage", false)
|
v.SetDefault("hasCJKLanguage", false)
|
||||||
v.SetDefault("enableEmoji", false)
|
v.SetDefault("enableEmoji", false)
|
||||||
v.SetDefault("pygmentsCodeFencesGuessSyntax", false)
|
v.SetDefault("pygmentsCodeFencesGuessSyntax", false)
|
||||||
v.SetDefault("useModTimeAsFallback", false)
|
|
||||||
v.SetDefault("defaultContentLanguage", "en")
|
v.SetDefault("defaultContentLanguage", "en")
|
||||||
v.SetDefault("defaultContentLanguageInSubdir", false)
|
v.SetDefault("defaultContentLanguageInSubdir", false)
|
||||||
v.SetDefault("enableMissingTranslationPlaceholders", false)
|
v.SetDefault("enableMissingTranslationPlaceholders", false)
|
||||||
|
@ -484,18 +483,5 @@ func loadDefaultSettingsFor(v *viper.Viper) error {
|
||||||
v.SetDefault("disableFastRender", false)
|
v.SetDefault("disableFastRender", false)
|
||||||
v.SetDefault("timeout", 10000) // 10 seconds
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue