Skip to content

Commit

Permalink
re-enable comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jts committed Feb 28, 2017
1 parent 3eb9fd4 commit 82ee669
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions _includes/comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{% if page.comments %}

<h2>Comments</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">

/* * * CONFIGURATION VARIABLES * * */
var disqus_shortname = 'simpsonlab-gh';
var disqus_identifier = "{{ site.disqusid }}{{ page.url | replace:'index.html','' }}";

/* * * 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="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>

{% endif %}
1 change: 1 addition & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
{{ content }}
</div>

{% include comments.html %}
</article>

0 comments on commit 82ee669

Please sign in to comment.