aboutsummaryrefslogtreecommitdiffstats
path: root/subtle/templates/disqus_script.html
diff options
context:
space:
mode:
authorasselinpaul <pa.asselin@gmail.com>2012-06-12 18:23:40 +0200
committerasselinpaul <pa.asselin@gmail.com>2012-06-12 18:23:40 +0200
commite4c3d6fc542026ba68fa6f7e9cf4d84ab6e1801b (patch)
treeca743fea2c153afadc5266c15d9657062811583f /subtle/templates/disqus_script.html
parentfdbaa6805064db85f6e71852d0c00e245d7ad432 (diff)
downloadpelican-themes-e4c3d6fc542026ba68fa6f7e9cf4d84ab6e1801b.tar.gz
added subtle
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 %}