{% extends 'basic/layout.html' %}

{% block extrahead %}
    {{ super() }}
    {% if theme_touch_icon %}
        <link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}">
    {% endif %}
    <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
{% endblock %}

{% block header %}
    {{ super() }}
    {% if pagename == 'index' %}
    <div class=indexwrapper>
    {% endif %}
{% endblock %}

{% block footer %}
    {% if pagename == 'index' %}</div>{% endif %}
{% endblock %}

{# do not display relbars or sidebars #}

{% block relbar1 %}{% endblock %}

{% block relbar2 %}
{% if theme_github_fork %}
<div class="github">
    <a href="https://github.com/{{ theme_github_fork }}">
        <span>Fork me on GitHub</span>
        <img src="https://s3.amazonaws.com/github/ribbons/forkme_right_{{ theme_github_ribbon_color }}.png" alt="Fork me on GitHub">
    </a>
</div>
{% endif %}
{% endblock %}

{% block sidebar1 %}{% endblock %}

{% block sidebar2 %}{% endblock %}
