Permalink
Browse files

hugolib: Remove deprecated useModTimeAsFallback

  • Loading branch information...
bep committed Nov 1, 2018
1 parent faeb55c commit 0bc4b0246dd6b7d71f8676a52644077a4f70ec8f
Showing with 0 additions and 14 deletions.
  1. +0 −14 hugolib/config.go
View
@@ -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
}

0 comments on commit 0bc4b02

Please sign in to comment.