Created
October 21, 2016 14:15
-
-
Save EnMod/c99798f68898c2e2a174f7b5b56ef73d to your computer and use it in GitHub Desktop.
Disqus standalone code-injected JS for Ghost
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
<script> | |
(function() { | |
var disqus_username = 'YOUR_DISQUS_USERNAME'; // Don't forget to replace | |
var d = document, s = d.createElement('script'); | |
s.src = '//' + disqus_username + '.disqus.com/embed.js'; | |
s.setAttribute('data-timestamp', +new Date()); | |
if ($('body').hasClass('post-template')) { | |
(d.head || d.body).appendChild(s); | |
} | |
})(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment