Skip to content

Instantly share code, notes, and snippets.

@EnMod
Created October 21, 2016 14:15
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 EnMod/c99798f68898c2e2a174f7b5b56ef73d to your computer and use it in GitHub Desktop.
Save EnMod/c99798f68898c2e2a174f7b5b56ef73d to your computer and use it in GitHub Desktop.
Disqus standalone code-injected JS for Ghost
<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