Permalink
Browse files

add disqus comments

  • Loading branch information...
glehmann committed Dec 22, 2014
1 parent ecf47bf commit a3da95c8d8c3ed246fa05a2d2ee54793f079981a
Showing with 18 additions and 0 deletions.
  1. +1 −0 _config.yml
  2. +16 −0 _includes/comments.html
  3. +1 −0 _layouts/default.html
View
@@ -31,5 +31,6 @@ defaults:
type: posts
values:
layout: page
comments: true
# Custom vars
View
@@ -0,0 +1,16 @@
{% if page.comments %}
<!-- Add Disqus comments. -->
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'glehmannn'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(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="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
{% endif %}
View
@@ -21,6 +21,7 @@ <h3 class="masthead-title">
<div class="container content">
{{ content }}
{% include comments.html %}
</div>
</div>

0 comments on commit a3da95c

Please sign in to comment.