Skip to content

Commit

Permalink
Added the wordpress_id value in Disqus code if present in the post
Browse files Browse the repository at this point in the history
Signed-off-by: Tommaso Visconti <tommaso.visconti@gmail.com>
  • Loading branch information
tommyblue committed Feb 25, 2012
1 parent 3a2df76 commit 7956efe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _includes/JB/comments-providers/disqus
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7956efe

Please sign in to comment.