{%- extends "layout.html" %}
{% set fa = ablog.fontawesome %}
{%- block extrahead %}
  {{ super() }}
  {% if feed_path %}
  <link rel="alternate" type="application/atom+xml"  href="{{ pathto(feed_path, 1) }}/atom.xml" title="{{ feed_title }}">
  {% endif %}
  {% if ablog.fontawesome_link_cdn%}
  <link href="{{ ablog.fontawesome_link_cdn }}" rel="stylesheet">
  {% elif ablog.fontawesome_css_file %}
  <link rel="stylesheet" href="{{ pathto('_static/' + ablog.fontawesome_css_file, 1) }}" type="text/css" />
  {% endif %}
{% endblock %}

{% block body %}
  {{ body }}
  <div class="section">
  {% if pagename in ablog %}
    {% include "postnavy.html" %}
    {% include "share.html" %}
  {% else %}
    {% if theme_share_all %}
      {% include "share.html" %}
    {% endif %}
  {% endif %}
  {% if 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 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 %}
