Closed bryndin closed 1 month ago
This section of docs is redundant, misleading, and should be removed: https://gohugo.io/templates/embedded/?search-input=disqusShortname#conditional-loading-of-disqus-comments
Not only is this logic already present in the template, and thus redundant https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/disqus.html
it doesn't have the safety checks, e.g. {{ if .Site.Config.Services.Disqus.Shortname }} that are present in the template.
{{ if .Site.Config.Services.Disqus.Shortname }}
hugo version
master
yes
This section of docs is redundant, misleading, and should be removed:
https://gohugo.io/templates/embedded/?search-input=disqusShortname#conditional-loading-of-disqus-comments
Not only is this logic already present in the template, and thus redundant https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/disqus.html
it doesn't have the safety checks, e.g.
{{ if .Site.Config.Services.Disqus.Shortname }}
that are present in the template.What version of Hugo are you using (
hugo version
)?master
Does this issue reproduce with the latest release?
yes