diff options
author | Joe Mooring <[email protected]> | 2023-10-16 10:56:37 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-10-18 17:35:54 +0200 |
commit | 2eca1b3cc1cd03fee40c0abcdc61dab1016c0475 (patch) | |
tree | 444e59b4de1a36e993271c036655a291490ed443 /resources | |
parent | 625162674dbd6a32e86fb7fe1f91fafb4615d91b (diff) | |
download | hugo-2eca1b3cc1cd03fee40c0abcdc61dab1016c0475.tar.gz hugo-2eca1b3cc1cd03fee40c0abcdc61dab1016c0475.zip |
hugolib: Deprecate .Site.DisqusShortname
Use .Site.Config.Services.Disqus.Shortname instead.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/page/site.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/page/site.go b/resources/page/site.go index 527bc5046..ba2759a06 100644 --- a/resources/page/site.go +++ b/resources/page/site.go @@ -298,6 +298,7 @@ func (s *siteWrapper) IsMultiLingual() bool { return s.s.IsMultiLingual() } +// Deprecated: Use .Site.Config.Services.Disqus.Shortname instead func (s *siteWrapper) DisqusShortname() string { return s.s.DisqusShortname() } @@ -440,6 +441,7 @@ func (testSite) GetPageWithTemplateInfo(info tpl.Info, ref ...string) (Page, err return nil, nil } +// Deprecated: Use .Site.Config.Services.Disqus.Shortname instead func (testSite) DisqusShortname() string { return "" } |