Permalink
Browse files

add disqus (Trial 4): change partial comments.html

  • Loading branch information...
petzi53
petzi53 committed Sep 9, 2017
1 parent a22981f commit b7993533e501e2f1668375e22fe05e1ceb7d87ae
Showing with 10 additions and 5 deletions.
  1. +10 −5 themes/hugo-academic/layouts/partials/comments.html
@@ -1,5 +1,10 @@
{{ if and .Site.DisqusShortname (not (or .Site.Params.disable_comments .Params.disable_comments)) }} <div id="disqus_thread"></div>
<section id="comments"> <script>
{{ template "_internal/disqus.html" . }} (function() {
</section> var d = document, s = d.createElement('script');
{{ end }} s.src = 'https://larnsce.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">comments powered by Disqus.</a></noscript>

0 comments on commit b799353

Please sign in to comment.