diff options
author | Joe Mooring <joe.mooring@veriphor.com> | 2023-10-16 10:56:37 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-10-18 17:35:54 +0200 |
commit | 2eca1b3cc1cd03fee40c0abcdc61dab1016c0475 (patch) | |
tree | 444e59b4de1a36e993271c036655a291490ed443 /hugolib | |
parent | 625162674dbd6a32e86fb7fe1f91fafb4615d91b (diff) |
hugolib: Deprecate .Site.DisqusShortname
Use .Site.Config.Services.Disqus.Shortname instead.
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/site_new.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/site_new.go b/hugolib/site_new.go index d582b1b79..b35de79ef 100644 --- a/hugolib/site_new.go +++ b/hugolib/site_new.go @@ -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 } |