Skip to content

Commit

Permalink
Added disqus template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Milo Hyben committed Jan 2, 2017
1 parent 91a10f1 commit 743314a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions layouts/partials/disqus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ if ne .Params.comments false}}
{{ if .Site.DisqusShortname }}
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ .Site.DisqusShortname }}';
var disqus_url = '{{ .Permalink }}';
(function() {
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>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
{{ end }}
{{ end }}

0 comments on commit 743314a

Please sign in to comment.