diff options
author | asselinpaul <pa.asselin@gmail.com> | 2012-06-12 18:23:40 +0200 |
---|---|---|
committer | asselinpaul <pa.asselin@gmail.com> | 2012-06-12 18:23:40 +0200 |
commit | e4c3d6fc542026ba68fa6f7e9cf4d84ab6e1801b (patch) | |
tree | ca743fea2c153afadc5266c15d9657062811583f /subtle/templates/disqus_script.html | |
parent | fdbaa6805064db85f6e71852d0c00e245d7ad432 (diff) | |
download | pelican-themes-e4c3d6fc542026ba68fa6f7e9cf4d84ab6e1801b.tar.gz |
added subtle
Diffstat (limited to 'subtle/templates/disqus_script.html')
-rwxr-xr-x | subtle/templates/disqus_script.html | 11 |
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 %} |