hugolib: Deprecate .Site.DisqusShortname

Use .Site.Config.Services.Disqus.Shortname instead.
This commit is contained in:
Joe Mooring
2023-10-16 10:56:37 -07:00
committed by Bjørn Erik Pedersen
parent 625162674d
commit 2eca1b3cc1
6 changed files with 19 additions and 13 deletions

View File

@@ -447,8 +447,9 @@ func (s *Site) Social() map[string]string {
return s.conf.Social
}
// TODO(bep): deprecate.
// Deprecated: Use .Site.Config.Services.Disqus.Shortname instead
func (s *Site) DisqusShortname() string {
helpers.Deprecated(".Site.DisqusShortname", "Use .Site.Config.Services.Disqus.Shortname instead.", false)
return s.Config().Services.Disqus.Shortname
}