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 /docs/content/en/content-management | |
parent | 625162674dbd6a32e86fb7fe1f91fafb4615d91b (diff) |
hugolib: Deprecate .Site.DisqusShortname
Use .Site.Config.Services.Disqus.Shortname instead.
Diffstat (limited to 'docs/content/en/content-management')
-rw-r--r-- | docs/content/en/content-management/comments.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/content/en/content-management/comments.md b/docs/content/en/content-management/comments.md index df9453c48..39663013b 100644 --- a/docs/content/en/content-management/comments.md +++ b/docs/content/en/content-management/comments.md @@ -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: |