-
-
Notifications
You must be signed in to change notification settings - Fork 331
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 discussion not generated because of wrong disqus_url #52
Comments
When publishing the website, you need to run |
Thank you, yes, I apologize for bothering you. It still might be useful to notify the other users because I doubt I have been the only one running into this. |
No worries. It is not your fault but lack of a systematic documentation, which is still under development. |
Unfortunately, the After clicking on either "About", "Resources" or "Slides" in the header of the page, I receive the following message from disqus:
After clicking on "troubleshooting guide" the disqus load button shows up with the message
I am grateful for any additional suggestions. |
@larnsce Try to set The other way is to add <div id="disqus_thread"></div>
<script>
(function() {
var d = document, s = d.createElement('script');
s.src = 'https://larnsce.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> |
Worked out, thanks! :) Also set |
I actually recommend the second way. The one thing I dislike most about Hugo is Unfortunately you cannot set |
Hi, I've also added the layouts/partials/disqus.html as mentioned above. I'm not sure what the issue could be.. Edit: ack, Sorry I just saw that this was closed right after I posted my comment. |
@jarvmiller Not sure which page you were looking at, but Disqus won't work for local preview (127.0.0.1) by default. I'll document how to make it work. For now, you can only see comments on the published website. |
Disqus comments were not being displayed for some reason. Found Issue 52 in the blogdown repo. The following fix appears to resolve the issue: rstudio/blogdown#52 (comment)
This finally worked for me, too! |
...and somehow my previous solution stopped working. Back to square one |
I try to use disqus with radix, I can see post your comment at to bottom of the post, but when I push, nothing come, any idea? |
And rebuilt all the pages. THIS FINALLY WOKKED. Detials of how I needed to fix this thing were in Yui Xi'es github issues here rstudio/blogdown#52 (comment)
Hello, so I am using a recent version of blogdown, the archive is now
Only adding
and it did not work, so I noticed that inside for the record, my disqus.html looks like this :
|
I was not sure whether to report this because I am new to Hugo and it is possible that I am just doing it wrong. However, I see other blogs running into the sample problem (see below).
The problem is after adding
disqusShortname
toconfig.toml
and generating HTML page, Disqus says: We were unable to load Disqus. If you are a moderator please see our troubleshooting guide. (see for example Kevin Wong's blog: http://kevinfw.com/post/blogging-with-r-markdown/)After viewing the page source and some troubleshooting I have found that the problem is disqus_url that miss the baseurl. For example in Kevin Wong's blog above the line 261 is
but instead it should be
For my blog https://simecek.github.io/blog I have solved the problem by editing the footer of the theme and replacing default Hugo disqus template by my own. However, this is likely to be a blogdown bug and should be corrected.
The text was updated successfully, but these errors were encountered: