{% extends '_types/root/_index.html' %}

{% block meta %}
  {{ super() }}
  <script>
    (function() {
      var p = new URLSearchParams(window.location.search);
      if (!p.has('view')
          && window.matchMedia('(min-width: 768px)').matches
          && localStorage.getItem('blog_view') === 'tile') {
        p.set('view', 'tile');
        window.location.replace(window.location.pathname + '?' + p.toString());
      }
    })();
  </script>
{% endblock %}

{% block root_header_child %}
  {% from '_types/root/_n/macros.html' import index_row with context %}
  {% call index_row('root-blog-header', '_types/blog/header/_header.html') %}
    {% block root_blog_header %}
    {% endblock %}
  {% endcall %}
{% endblock %}


{% block aside %}
  {% include "_types/blog/desktop/menu.html" %}
{% endblock %}

{% block filter %}
  {% include "_types/blog/mobile/_filter/summary.html" %}
{% endblock %}

{% block content %}
  {% include '_types/blog/_main_panel.html' %}
{% endblock %}
