add disqus_url to comment js block#669
Conversation
|
Hi Leroy. Thanks for your contribution, which seems like a good practice. A few comments... I'm not sure that In summary, could we not simply do the following to include the And actually, this brings up a topic that I've brought up on IRC before... Should we not simply disable the entire Disqus comment Instead of the following in ... why not something like this? If that were the default, the scope of this pull request could be changed to adding a single line: What do you think? |
|
Thanks for your reply. I agree with you that Other than that, I think the way you suggested are much more clean and should work the same. |
|
Actually, you're quite right... Since I don't use the I'll bring this up with some other folks and solicit some ideas. |
|
After a brief discussion in IRC, I suspect we'll resolve this (for now) by changing the default value for |
|
Thanks, Justin. I've updated the code according to your suggestion, this should work fine if users set |
|
thanks, fixed in 4f6467c |
|
Hey @ametaireau is it enough to use SITEURL ? I have just tried to use this solution in my template while using: It seems that SITEURL will end up as "../../../" instead of an empty string "", therefore I have used the following solution: Which seems to work, what do you think? |
By default, the
disqus_urlis not set in thedisqus_threadblock, which is suggested to be set in the disqus official docs.With
disqus_urlnot set, if I opened my article in the browser in a dev environment before publishing, the page is rendered with url such ashttp://localhost:8000/your-slug/, and disqus will use that url as thedisqus_url(explained in the doc).Once set, the thread will use that
disqus_urlto generate links to the comments, that is, every comment, no matter put on product environment or dev env, will be set with thelocalhost:8000started url. What's more, thedisqus_urlcannot be updated once set, you'll have the change the identifier(slug) to get rid of thatlocalhost:8000url.So, I change the
articletemplate ofnot my ideatheme, and I recommend other theme maker to add thedisqus_urlsettings, too.