-
Notifications
You must be signed in to change notification settings - Fork 87
/
disqus.html
16 lines (16 loc) · 789 Bytes
/
disqus.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<section class="disqus">
<div id="disqus_thread"></div>
<script type="text/javascript">
(function() {
// Don't ever inject Disqus on localhost--it creates unwanted
// discussions from 'localhost:1313' on your Disqus account...
if (window.location.hostname == "localhost")
return;
var disqus_shortname = '{{ .Site.DisqusShortname }}';
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>{{ i18n "enableJavaScript" }} <a href="https://disqus.com/?ref_noscript">Disqus</a>.</noscript>
</section>