Skip to content

Instantly share code, notes, and snippets.

@kfaustino
Created June 1, 2011 12:27
Show Gist options
  • Save kfaustino/1002201 to your computer and use it in GitHub Desktop.
Save kfaustino/1002201 to your computer and use it in GitHub Desktop.
Disqus in Haml
:plain
<div id="disqus_thread"></div>
<script type="text/javascript">
/**
* var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread]
*/
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '<SOURCE.JS>';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment