Skip to content

Instantly share code, notes, and snippets.

@matijagrcic
Created March 1, 2014 00:31
Show Gist options
  • Save matijagrcic/9282802 to your computer and use it in GitHub Desktop.
Save matijagrcic/9282802 to your computer and use it in GitHub Desktop.
<div id="discourse-comments"></div>
<script type="text/javascript">
var discourseUrl = "http://discourse.yourdomain.com/", //root URL of your Discourse forum
discourseEmbedUrl = 'http://yourdomain.com/discourse-on-ghost.html'; //URL of your blog post
(function() {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment