Skip to content

Commit

Permalink
add disqus comments
Browse files Browse the repository at this point in the history
  • Loading branch information
glehmann committed Dec 22, 2014
1 parent ecf47bf commit a3da95c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions _config.yml
Expand Up @@ -31,5 +31,6 @@ defaults:
type: posts
values:
layout: page
comments: true

# Custom vars
16 changes: 16 additions & 0 deletions _includes/comments.html
@@ -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 %}
1 change: 1 addition & 0 deletions _layouts/default.html
Expand Up @@ -21,6 +21,7 @@ <h3 class="masthead-title">

<div class="container content">
{{ content }}
{% include comments.html %}
</div>
</div>

Expand Down

0 comments on commit a3da95c

Please sign in to comment.