ref: 0bc4b0246dd6b7d71f8676a52644077a4f70ec8f
parent: faeb55c1d827f0ea994551a103ff4f7448786d39
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Nov 1 17:14:30 EDT 2018
hugolib: Remove deprecated useModTimeAsFallback
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -473,7 +473,6 @@
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)
@@ -483,19 +482,6 @@
v.SetDefault("debug", false)
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
}