You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried setting the disqusShortname in my config.toml and don't see disqus comments appearing on my site. I have noticed a few things that I believe are related:
in partials/disqus.html it reads the shortname from .Site.DisqusShortname but this partial is only included if .Site.Params.disqusShortname is set in the single.html partial.
If you try to fix the above error by setting both .Site.DisqusShortname and .Site.Params.disqusShortname, or by changing the variables to match then hugo produces an error in disqus.html:
partials/disqus.html:11:36: executing "partials/disqus.html" at <.Site.Params.disqusshortname>: can't evaluate field Site in type string
I've found that this can be resolve by removing the . when including the disqus.html partial
{{ partial "disqus.html" }}
After doing the above I see "comments powered by Disqus" appear
The text was updated successfully, but these errors were encountered:
robwirving
changed the title
Disqus comments not working
[Bug] Disqus comments not working
Aug 15, 2019
I have tried setting the disqusShortname in my config.toml and don't see disqus comments appearing on my site. I have noticed a few things that I believe are related:
in partials/disqus.html it reads the shortname from .Site.DisqusShortname but this partial is only included if .Site.Params.disqusShortname is set in the single.html partial.
If you try to fix the above error by setting both .Site.DisqusShortname and .Site.Params.disqusShortname, or by changing the variables to match then hugo produces an error in disqus.html:
partials/disqus.html:11:36: executing "partials/disqus.html" at <.Site.Params.disqusshortname>: can't evaluate field Site in type string
I've found that this can be resolve by removing the . when including the disqus.html partial
{{ partial "disqus.html" }}
After doing the above I see "comments powered by Disqus" appear
The text was updated successfully, but these errors were encountered: