aboutsummaryrefslogtreecommitdiffstats
path: root/subtle/templates/disqus_script.html
diff options
context:
space:
mode:
authorm-r-r <skami@skami-laptop.dyndns.org>2012-06-22 07:57:12 +0000
committerm-r-r <skami@skami-laptop.dyndns.org>2012-06-22 07:57:12 +0000
commit98f0d46f2bbddf86e8d202b533af35fa79da2d2f (patch)
tree297d677cfa76bb20d4e80803343c69b99c939e37 /subtle/templates/disqus_script.html
parent2950b6abdad62fdd74682880acdec32f9b417420 (diff)
parent83892b7112e27721218556c4030cdd5c8d26f98b (diff)
downloadpelican-themes-98f0d46f2bbddf86e8d202b533af35fa79da2d2f.tar.gz
[dev-random] resolved conflicts
Diffstat (limited to 'subtle/templates/disqus_script.html')
-rwxr-xr-xsubtle/templates/disqus_script.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/subtle/templates/disqus_script.html b/subtle/templates/disqus_script.html
new file mode 100755
index 0000000..c4f442c
--- /dev/null
+++ b/subtle/templates/disqus_script.html
@@ -0,0 +1,11 @@
+{% if DISQUS_SITENAME %}
+<script type="text/javascript">
+ var disqus_shortname = '{{ DISQUS_SITENAME }}';
+ (function () {
+ var s = document.createElement('script'); s.async = true;
+ s.type = 'text/javascript';
+ s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
+ (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
+ }());
+</script>
+{% endif %}