Add disqus comments

This commit is contained in:
Philipp Oppermann
2016-04-30 14:30:43 +02:00
parent 4c42c961ac
commit e0ce3a6774
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<div id="disqus_thread"></div>
<script>
(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 d = document, s = d.createElement('script');
s.src = '//phil-opp.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>

View File

@@ -12,4 +12,6 @@
{{ .Content }}
</article>
{{ partial "disqus.html" . }}
{{ partial "footer.html" . }}