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

transfer disqus comments #4

Closed
njtierney opened this issue Jun 19, 2017 · 15 comments
Closed

transfer disqus comments #4

njtierney opened this issue Jun 19, 2017 · 15 comments

Comments

@njtierney
Copy link
Collaborator

Not that there are that many to transfer, but work out how to do that properly

@njtierney
Copy link
Collaborator Author

I've added the custom footer now, need to check why this isn't working

@njtierney
Copy link
Collaborator Author

I've added the footer from this pull request, and added my disqus shortname, not sure what else there is to do here.

@njtierney
Copy link
Collaborator Author

@yihui have I missed something with my disqus stuff?

@yihui
Copy link
Member

yihui commented Jun 23, 2017

Yes, a proper baseurl: https://bookdown.org/yihui/blogdown/configuration.html#options

You do not see a full baseurl in the hugo-xmin repo only because I hid it behind the scenes on Netlify:

image

That said, I think this issue should be fixed in Hugo. I noticed it long time ago but it didn't bother me enough. You are not the first person who has been bitten by this issue, but I have finally submitted a PR to Hugo to fix it: gohugoio/hugo#3639

You can also customize your disqus.html. I have a fairly complicated one for myself and I don't think you want to borrow it: https://github.com/rbind/yihui/blob/master/layouts/partials/disqus.html included at https://github.com/rbind/yihui/blob/master/layouts/_default/single.html#L20

@njtierney
Copy link
Collaborator Author

Hey @yihui - I'm not sure what I'm missing on my site but I noticed that someone else seems to ahve the same/similar problem, do you have an idea on what I might be missing?

@yihui
Copy link
Member

yihui commented Jul 31, 2017

My hugo-xmin does not support Disqus comments by default, but I have shown how: https://github.com/yihui/hugo-xmin/pull/4/files

@njtierney
Copy link
Collaborator Author

OK thanks for that! I missed adding in the footer, I've worked through the disqus troubleshooting guide, but it looks like I'll need to contact their team, as their suggestions haven't fixed it.

@yihui
Copy link
Member

yihui commented Jul 31, 2017

No need to contact them. I can spot the problem in 5 seconds. In short, upgrade your Hugo version on Netlify (because of the issues I fixed in gohugoio/hugo#3639). Here is the config info of one of my websites:

image

@njtierney
Copy link
Collaborator Author

oh wow, thank you so much! It works now! 😄

I just need to migrate the disqus comments over now, need to do some reading on that.

@yihui
Copy link
Member

yihui commented Jul 31, 2017

Yes. Migration is not too bad. Basically you just prepare a CSV file containing old and new URLs. Good luck!

@njtierney
Copy link
Collaborator Author

Thanks!

@yihui
Copy link
Member

yihui commented Jul 31, 2017

BTW, enable HTTPS! It is free on Netlify. Why HTTPS? https://https.cio.gov/everything/

@njtierney
Copy link
Collaborator Author

Awesome! I think I'm all secure now.

Hmm, any thoughts on how to disable commenting on every single page? Like to get it to run only on posts, or can you specify some "comments = TRUE" argument in the YAML?

@yihui
Copy link
Member

yihui commented Aug 3, 2017

@njtierney
Copy link
Collaborator Author

Going to look into using utteranc.es instead of disqus

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

2 participants