Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disqus comments not working #215

Closed
tboquet opened this issue Aug 5, 2015 · 2 comments
Closed

Disqus comments not working #215

tboquet opened this issue Aug 5, 2015 · 2 comments

Comments

@tboquet
Copy link

tboquet commented Aug 5, 2015

Hi all,

I have set my DISQUS_SITENAME = mysiteshortname in my publishconf.py but they are not loading and I have the "We were unable to load Disqus. If you are a moderator please see our troubleshooting guide. " error.
I think I have the correct configuration for the site in disqus and I see the js code generated in the webpage.
Do you have any advice to debug this?

Tx!

@tboquet
Copy link
Author

tboquet commented Aug 5, 2015

update:
I think the variable disqus_url is not right?

            /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
            var disqus_shortname = 'blog'; // required: replace example with your forum shortname

                    var disqus_identifier = 'page';
                var disqus_url = '/page.html';

            var disqus_config = function () {
                this.language = "en";
            };

            /* * * DON'T EDIT BELOW THIS LINE * * */
            (function () {
                var dsq = document.createElement('script');
                dsq.type = 'text/javascript';
                dsq.async = true;
                dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
                (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
            })();

@tboquet
Copy link
Author

tboquet commented Aug 5, 2015

update:
I had to declare the variable SITEURL in both pelicanconf.py and publishconf.py. I only had this variable set in publishconf.py.

@tboquet tboquet closed this as completed Aug 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant