Skip to content
Browse files

Merge pull request #47 from tommyblue/jb-development

Added the wordpress_id value in Disqus code if present in the post
  • Loading branch information...
2 parents 3a2df76 + 7956efe commit 878e06c3afc6455bff9de3e8b486d4cefa8f23af @plusjade plusjade committed Feb 25, 2012
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 878e06c

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