Created
December 25, 2012 17:50
-
-
Save jpadilla/4374402 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{block:IfDisqusShortname} | |
<!-- Disqus JS --> | |
<script> | |
var disqus_shortname = '{text:Disqus Shortname}'; | |
{block:Permalink} | |
var disqus_url = "{Permalink}"; | |
var disqus_identifier = "{PostID}"; | |
var disqus_title ="{PostTitle}"; | |
(function() { | |
var dsq = document.createElement('script'); | |
dsq.type = 'text/javascript'; | |
dsq.async = true; | |
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; | |
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | |
})(); | |
{/block:Permalink} | |
(function () { | |
var s = document.createElement('script'); | |
s.async = true; | |
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js'; | |
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); | |
}()); | |
</script> | |
{/block:IfDisqusShortname} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment