Skip to content

Commit

Permalink
Fixed regression in comment counters.
Browse files Browse the repository at this point in the history
  • Loading branch information
le4ker committed Jul 15, 2015
1 parent b80d292 commit da95f39
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions _includes/js.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,24 @@
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
{% endif %}

<!-- Comments counter -->
{% endif %}

<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ site.disqus-shortname }}'; // required: replace example with your forum shortname
{% if page.section-type == "post" or page.section-type == "blog" or page.section-type == "index" %}

/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
{% endif %}
<!-- Comments counter -->

<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ site.disqus-shortname }}'; // required: replace example with your forum shortname

/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
{% endif %}

0 comments on commit da95f39

Please sign in to comment.