docsy icon indicating copy to clipboard operation
docsy copied to clipboard

disqus comments not appearing, neither in local nor in prod

Open mateja82 opened this issue 6 years ago • 2 comments

Not sure if this is a bug, or there's something weird in my implementation, but it's not working in localhost (not sure if it should), nor on my site.

Here's what I did, as per official instructions on Hugo, and following #35 35

Step 1.

added to config.toml [params] ... Enable Disqus Comments disqusShortName = "www-matscloud-com"

Step 2.

Copied "disqus-comment.html" to the local layouts/partials

Is there something else that I should be changing, and isn't docummented? On "content" it seems that everything is in place. @thinkerou I've seen that this was your pull, did you get any feedbacks from anyone else? Thanks

mateja82 avatar Apr 23 '20 12:04 mateja82

Solved it, changed the parameter name to Site.Params.DisqusShortname (issue due to Hugo base release change).

in content.html: {{ .Content }} {{ if (.Site.Params.DisqusShortname) }}
{{ partial "disqus-comment.html" . }}
{{ end }}

Pull requested, but not getting approved due to some weird email issue...

mateja82 avatar Apr 23 '20 13:04 mateja82

Merged now! Thanks for fixing.

LisaFC avatar Apr 27 '20 11:04 LisaFC