Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (42 sloc) 1.97 KB
{% if page.comments %}
{% if site.comments.provider == "staticman" %}
{% capture post_slug %}{{ page.url | slugify }}{% endcapture %}
<section class="comments">
<div class="constrain--body">
{% if site.data.comments[post_slug] != null %}
<div class="comments__existing js-comments">
<h3 id="comments" class="t60">{{ site.data.language.comments_headline }}</h3>
{% if site.data.comments[post_slug] %}
{% assign comments = site.data.comments[post_slug] | sort %}
{% for comment in comments %}
{% assign email = comment[1].email %}
{% assign name = comment[1].name %}
{% assign url = comment[1].url %}
{% assign date = comment[1].date %}
{% assign message = comment[1].message %}
{% include _post-comment.html index=forloop.index email=email name=name url=url date=date message=message %}
{% endfor %}
{% endif %}
</div>
{% endif %}
<h2 class="comments__heading heading-2">{{ site.data.language.comment_form.title }}</h2>
{% include _post-new-comment.html %}
</div>
</section>
{% else %}
<h3 id="comments" class="t60">{{ site.data.language.comments_headline }}</h3>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ site.disqus_shortname }}';
var disqus_identifier = '{{ page.url }}';
/* * * 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 %}
{% endif %}