Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Disqus not loading #20

Closed
dixonge opened this issue Nov 17, 2015 · 4 comments
Closed

Disqus not loading #20

dixonge opened this issue Nov 17, 2015 · 4 comments
Labels

Comments

@dixonge
Copy link

dixonge commented Nov 17, 2015

After fixing my compile error, I can see that the disqus shortname is set in config.toml and is being pushed to my source repo on github. But when I run hugo -d and compile the site to its own directory the resulting html files do not contain the disqus code. It seems like the 'if' statement in disqus.html isn't seeing that the disqus shortname has been set.

@dixonge dixonge closed this as completed Nov 17, 2015
@dixonge dixonge reopened this Nov 17, 2015
@chipsenkbeil
Copy link
Owner

Hm, odd. I'll have to take a look at that.

One thing to note is that I run Hugo using $(GOPATH)/bin/hugo --theme="grid-side" from my personal website's project: https://github.com/chipsenkbeil/senkbeil.org There is no -d option in my build. I'm using Travis to build (via that command) whenever I push to the repository and then push out the changes to here: https://github.com/chipsenkbeil/chipsenkbeil.github.io

My site has comments working. Keep in mind that comments are only shown for posts, IIRC.

@dixonge
Copy link
Author

dixonge commented Nov 17, 2015

I've got the theme set in config.toml - can't imagine that would make a difference though.

I have another site w/ another theme and disqus works, so I may change my build process and test that out. The other site is a project page w/ gh-pages branch as a subtree, mirroring off of public. I'm having this Disqus issue w/ two sites, so I'll have to try the subtree on the one which is a project page, not my main blog on dixonge.github.io .

I even tried changing some capitalization of disqusShortname vs DisqusShortname in both the disqus.html file and the config file. All changes produced errors on build.

@dixonge
Copy link
Author

dixonge commented Nov 18, 2015

Tried a few other things tonight, none worked. I ended up just manually inserting Disqus code into the single.html partial.

@dixonge
Copy link
Author

dixonge commented May 11, 2019

This is an OLD issue, so I'll update and close:

1 - Disqus doesn't load on localhost, complaining of no javascript. This could be a browser issue, or that Disqus just doesn't work on localhost...
2 - Disqus loads just fine on my current site, pushed to Github then built and served via Netlify

@dixonge dixonge closed this as completed May 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants