Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added the wordpress_id value in Disqus code if present in the post

Signed-off-by: Tommaso Visconti <tommaso.visconti@gmail.com>
  • Loading branch information...
commit 7956efeabdbd533aa3677df7f1fe640e0d591884 1 parent 3a2df76
@tommyblue tommyblue authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  _includes/JB/comments-providers/disqus
View
1  _includes/JB/comments-providers/disqus
@@ -2,6 +2,7 @@
<script type="text/javascript">
{% if site.safe == false %}var disqus_developer = 1;{% endif %}
var disqus_shortname = '{{ site.JB.comments.disqus.short_name }}'; // required: replace example with your forum shortname
+ {% if page.wordpress_id %}var disqus_identifier = '{{page.wordpress_id}} {{site.production_url}}/?p={{page.wordpress_id}}';{% endif %}
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;

0 comments on commit 7956efe

Please sign in to comment.
Something went wrong with that request. Please try again.