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

@@ -24,8 +24,9 @@ Hugo comes with all the code you need to load Disqus into your templates. Before
Disqus comments require you set a single value in your [site's configuration file][configuration] like so:
{{< code-toggle copy=false >}}
disqusShortname = "yourDisqusShortname"
{{< code-toggle file="hugo" >}}
[services.disqus]
shortname = 'your-disqus-shortname'
{{</ code-toggle >}}
For many websites, this is enough configuration. However, you also have the option to set the following in the [front matter] of a single content file: