Last active
June 4, 2017 14:48
-
-
Save igorkulman/47e9d4dc4bbb5279267a58d7bc794944 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var disqus_config = function () { | |
this.page.url = '{{ trim .Permalink "/" }}'; | |
}; |
This file contains hidden or 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 id="dsq-count-scr" src="//{{.Site.DisqusShortname}}.disqus.com/count.js" async></script> |
This file contains hidden or 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
$(function(){ | |
$('#show-comments').on('click', function(){ | |
var disqus_shortname = '{{.Site.DisqusShortname}}'; | |
(function() { | |
var disqus = document.createElement('script'); | |
disqus.type = 'text/javascript'; | |
disqus.async = true; | |
disqus.src = '//' + disqus_shortname + '.disqus.com/embed.js'; | |
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(disqus); | |
})(); | |
$(this).hide(); // Hide the button | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment