-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
Replace old Disqus script with Universal Embed Code #1179
Conversation
<div id="disqus_thread"></div> | ||
<script> | ||
var disqus_config = function () { | ||
this.page.url = "{{ site.url }}{{ page.url }}"; // Replace PAGE_URL with your page's canonical URL variable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace site.url
with Jekyll's absolute URL filter. This will cover users who need to use both site.url
and site.baseurl
.
this.page.url = "{{ page.url | absolute_url }}";
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the advice ... updated ...
Thanks for the PR and making that minor edit. |
thanks!! |
* update embeddable disqus javascript * Update disqus.html
* update embeddable disqus javascript * Update disqus.html
* update embeddable disqus javascript * Update disqus.html
The old code seems to not be working anymore, the new code is based from Universal Embed Code that Disquss introduced recently.
Source:
https://help.disqus.com/customer/portal/articles/472097-universal-embed-code