mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
hugolib: Deprecate .Site.DisqusShortname
Use .Site.Config.Services.Disqus.Shortname instead.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
625162674d
commit
2eca1b3cc1
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user