Feb
04
2016
0
Update on Disqus comment counts
Yesterday I posted an article on how to add Disqus comment and noted I was hoping to find a tag to get the Disqus shortname. I haven’t found the correct tag/variable yet, but there is already a method to at least make the template dynamic.
Blot.im allows you to create global variables for your template. I created a variable named disqus_shortname
and gave it the value of sharedmemorydump
.
The line loading the Disqus count script in the template footer.html
can now be updated from
<script id="dsq-count-scr" src="//sharedmemorydump.disqus.com/count.js" async></script>
into
<script id="dsq-count-scr" src="//{{disqus_shortname}}.disqus.com/count.js" async></script>
making it more dynamic.