<!DOCTYPE html>
<html lang="en">

{% include head.html %}

{% assign showSubmenu = false %}
{% for item in site.data.header-menu.items %}
    {% if item.items %}
        {% if page.url == item.link %}
            {% assign showSubmenu = true %}
        {% elsif page.parent_link == item.link %}
            {% assign showSubmenu = true %}
        {% endif %}
    {% endif %}
{% endfor %}
<body>
{% include header.html %}
<div id="main" class="{% if showSubmenu %}submenu{% endif %}">
    {% if site.data.notification.show %}
        <div class="container my-3">
            <div class="alert alert-{{ site.data.notification.type }}" role="alert">
                {{ site.data.notification.text }}
            </div>
        </div>
    {% endif %}
    <div class="container">
        <div class="row">
            <main class="col-sm-9">
                {{ content }}
            </main>
            <div class="col-sm-3">
                {% include sidebar.html %}
            </div>
        </div>
    </div>
</div>
{% include footer.html %}
</body>
</html>
