<!DOCTYPE html>
<html>
    {% load pages html compress %}
    <head>

        <meta charset="utf-8">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">{% comment %}
        <meta name="keywords" content="{% block meta_keywords %}{% meta_keywords %}{% endblock %}">
        {% endcomment %}<meta name="description" content="{% block meta_description %}{% meta_description %}{% endblock %}">
        <meta name="robots" content="{% block meta_robots %}{% meta_robots %}{% endblock %}">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
        <link rel="canonical" href="http{% if request.is_secure %}s{% endif %}://{{ request.META.HTTP_HOST }}{{ request.path }}" />

        <title>{% block title %}{% title %}{% endblock %}</title>

        {% block feeds %}{% endblock %}

        {% compress css %}
            <link rel="stylesheet" href="/static/css/screen.css"/>
        {% endcompress %}

    </head>

    <body class="{% block body_class %}{% endblock %}">

		{% include 'browser_update.html' %}

        <header>
            <h1><a href="{{pages.homepage.get_absolute_url}}">{{settings.SITE_NAME}}</a></h1>
        </header>

        <nav>
            {% navigation pages.homepage.navigation section=pages.homepage %}
        </nav>

        <div>
            <article>
                {% if not pages.is_homepage %}
                    <nav id="nav-breadcrumbs">{% block breadcrumbs %}{% breadcrumbs %}{% endblock %}</nav>
                {% endif %}
                {% block header_group %}
                    <h1>{% block header %}{% header %}{% endblock %}</h1>
                {% endblock %}
                {% block content_primary %}{{pages.current.content.content_primary|html}}{% endblock %}
            </article>
            <aside>
                {% block content_secondary %}{% endblock %}
            </aside>
        </div>

        <footer>
            <p>© {% now "Y" %} Site owner.</p>
        </footer>

        {% compress js %}
        {% endcompress %}

    </body>

</html>
