parsiya / Hugo-Octopress

Port of the classic Octopress theme to Hugo
MIT License
155 stars 52 forks source link

disqus not included #32

Closed simonszu closed 7 years ago

simonszu commented 7 years ago

I have noticed that, although "disqusShortname" was defined, the disqus code isn't included at the bottom of each post. There is a "Comments" link at the top of the post, which links to an anchor which is undefined. How comes?

parsiya commented 7 years ago

The reason is most likely my variable name. Hugo's internal template also uses disqusShortname in the config file. Changing the variable solved the issue. Will make a commit soon.

Seems to be a change in version 0.20.

parsiya commented 7 years ago

This should fix the issue. Let me know if it does not. Note that disqusShortname is not under params anymore in the config file. Look at the readme under Disqus or sample-config to see an example.