diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-02-11 16:51:22 +0700 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-02-11 16:51:22 +0700 |
commit | 234273a5b571128ccb866c176c38171ffeb3f561 (patch) | |
tree | 3e58ecc29bc0fd397f3afb3b52bcd297529e0a16 /helpers | |
parent | 5cc8b58907c63e6cfb668c575b40fbc3636a9655 (diff) | |
download | hugo-234273a5b571128ccb866c176c38171ffeb3f561.tar.gz hugo-234273a5b571128ccb866c176c38171ffeb3f561.zip |
Deprecate sourceRelativeLinks
Fixes #3028
Closes #3026
Closes #2891
Closes #2691
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/content.go | 7 | ||||
-rw-r--r-- | helpers/general.go | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/helpers/content.go b/helpers/content.go index 939be0554..d8130e83f 100644 --- a/helpers/content.go +++ b/helpers/content.go @@ -94,6 +94,13 @@ func NewBlackfriday(c ConfigProvider) *Blackfriday { jww.FATAL.Printf("Failed to get site rendering config\n%s", err.Error()) } + if combinedConfig.SourceRelativeLinksEval { + // Remove in Hugo 0.21 + Deprecated("blackfriday", "sourceRelativeLinksEval", + `There is no replacement for this feature, as no developer has stepped up to the plate and volunteered to maintain this feature`, false) + + } + return combinedConfig } diff --git a/helpers/general.go b/helpers/general.go index 83db76fc5..1088d9dd1 100644 --- a/helpers/general.go +++ b/helpers/general.go @@ -275,11 +275,11 @@ func InitLoggers() { // plenty of time to fix their templates. func Deprecated(object, item, alternative string, err bool) { if err { - DistinctErrorLog.Printf("%s's %s is deprecated and will be removed in Hugo %s. Use %s instead.", object, item, NextHugoReleaseVersion(), alternative) + DistinctErrorLog.Printf("%s's %s is deprecated and will be removed in Hugo %s. %s.", object, item, NextHugoReleaseVersion(), alternative) } else { // Make sure the users see this while avoiding build breakage. This will not lead to an os.Exit(-1) - DistinctFeedbackLog.Printf("WARNING: %s's %s is deprecated and will be removed in a future release. Use %s instead.", object, item, alternative) + DistinctFeedbackLog.Printf("WARNING: %s's %s is deprecated and will be removed in a future release. %s.", object, item, alternative) } } |