{%- extends "layout.html" %}
{%- block extrahead %}
  {{ super() }}
  {% if feed_path %}
  <link rel="alternate" type="application/atom+xml"  href="{{ pathto(feed_path, 1) }}/atom.xml" title="{{ feed_title }}">
  {% endif %}
{% endblock %}

{% block body %}
  {{ body }}
  <div class="section">
  {% if ablog and pagename in ablog %}
    {% include "postnavy.html" %}
    {% include "share.html" %}
  {% else %}
    {% if ablog and theme_share_all %}
      {% include "share.html" %}
    {% endif %}
  {% endif %}
  {% if ablog and ablog.disqus_shortname and ablog.blog_baseurl and
        (not ablog[pagename].nocomments) and
        ((pagename in ablog and (ablog[pagename].published or
          ablog.disqus_drafts)) or
         (not pagename in ablog and ablog.disqus_pages)) %}
    {% include "util/disqus.html" %}
  {% endif %}
  {% if ablog and theme_isso and
        (not ablog[pagename].nocomments) and
        ((pagename in ablog and (ablog[pagename].published or
          ablog.disqus_drafts)) or
         (not pagename in ablog and ablog.disqus_pages)) %}
<section class="comments" id="comments">
    <h2 class="panel">{{ _("Comments") }}</h2>
        <section id="isso-thread"
                 data-isso-id="{{ pagename }}"
            data-title="{{ title }}"
            ></section>
</section>
  {% endif %}
  </div>
{% endblock %}
