Skip to content

Instantly share code, notes, and snippets.

@jpadilla
Created December 25, 2012 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpadilla/4374402 to your computer and use it in GitHub Desktop.
Save jpadilla/4374402 to your computer and use it in GitHub Desktop.
{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