Skip to content

Instantly share code, notes, and snippets.

@scripting
Created June 18, 2016 10:44
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 scripting/7e17baaa66dc5a85d304eb6f10358a06 to your computer and use it in GitHub Desktop.
Save scripting/7e17baaa66dc5a85d304eb6f10358a06 to your computer and use it in GitHub Desktop.
A snippet of template code for 1999.io that adds Disqus comments to your story pages.
<div class="divDisqusComments">
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = "[%thispageurl%]";
};
(function () {
var d = document, s = d.createElement ('script');
s.src = '//smallpict.disqus.com/embed.js';
s.setAttribute ('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment