Install disqus to hermit theme

I want to add disqus to the blog I created using hugo and the theme “hermit”
I created disqus account ad configure the “disqusShortname” parameter in “config.toml” file but it didn’t appear at all, I tried, searched a lot and I didn’t find any decent solution.

here’s github repo for the project:

Try moving the disqus shortname line right below your theme = "hermit" line. You currently have it under the blackfriday options

Also see the example site’s config file https://github.com/Track3/hermit/blob/master/exampleSite/config.toml

it gives me this error in the deployment, but it’s working locally

Error building site: failed to render pages: render of "page" failed: execute of template failed: template: posts/single.html:48:5: executing "main" at <partialCached "disqu...>: error calling partialCached: "/opt/build/repo/themes/hermit/layouts/partials/disqus.html:10:36": execute of template failed: template: partials/disqus.html:10:36: executing "partials/disqus.html" at <.Site.DisqusShortnam...>: can't evaluate field Site in type string

I would contact the theme author with details of your error (and potential file a GitHub issue)

2 Likes