<!doctype html>
{% macro svg_icon(icon_name) %}
    <svg class="icon {{ icon_name }}">
        <use xlink:href="{{ url_for('redberry.static', filename='symbol-defs.svg') }}#{{ icon_name }}"></use>
    </svg>
{% endmacro %}

<html>
    <head>
        <meta charset="utf-8"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

        {% block head %}
        <title>Redberry CMS - a Flask blog blueprint</title>
        {% endblock %}

        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <link rel=stylesheet type=text/css href="{{ url_for('redberry.static', filename='css/redberry.css') }}">

    </head>
    <body>
        {% with messages = get_flashed_messages(with_categories=true) %}
            {% if messages %}
                {% for category, message in messages %}
                    <div class="flashes alert alert-{{ category }}">
                        <div class="container">
                            {{ message }}
                            <button type="button" class="close" data-dismiss="alert">
                                <span>&times;</span>
                            </button>
                        </div>
                    </div>
                {% endfor %}
            {% endif %}
        {% endwith %}
        {% block content %}{% endblock %}

        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
        <script type="text/javascript" src="{{ url_for('redberry.static', filename='js/redberry.js')}}"></script>
        {% block javascript %}{% endblock %}
    </body>
</html>