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

Can't show disqus comments #219

Closed
hendiko opened this issue Aug 10, 2015 · 3 comments

Comments

@hendiko
Copy link

commented Aug 10, 2015

I have set DISQUS_SITENAME = 'beautifulcloud', it works when I apply pelican-elegant theme, and I switch to pelican-bootstrap3, it has always shown info below:

We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

My pelican version is 3.6.2.

@xuehao

This comment has been minimized.

Copy link

commented Aug 10, 2015

Hi @hendiko ,
I meet the same troubleshooting yesterday. I just find the solution a second ago.
The disqus_url is not right (Maybe the reason is that you set the variable RELATIVE_URLS to True).
So please define a new parameter in your config file like this:
DISQUSURL = 'http://blog.yourdomain.com'
Then, go to pelican-bootstrap3 folder, edit templates/includes/comments.html.
Find the codes var disqus_url = '{{ SITEURL }}/{{ article.url }}';
Change SITEURL to DISQUSURL that you defined a minute ago.

@hendiko

This comment has been minimized.

Copy link
Author

commented Aug 11, 2015

Thanks, you are right, it works now!!!

@hendiko hendiko closed this Aug 11, 2015

@yangjin-unique

This comment has been minimized.

Copy link

commented Dec 2, 2015

Hi @xuehao,
Per your comment, If we let
SITEURL = 'http://blog.yourdomain.com',
Does this also fix this issue without modify templates/includes/comments.html ?
I tried, but failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.