{% if not posts %}
  <div class="empty">
    {{ "blog_no"|lang }}
    {% include 'articles_right_links.twig' %}
  </div>
{% else %}
<div class="blog-expl">
  {{ ("blog_expl_"~selected_lang)|lang|raw }}
</div>
<div class="blog-list">
  <div class="blog-list-wrap">
    {% set year = 3000 %}
    {% for post in posts %}
      {% if year > post.getYear() %}
        <div class="blog-list-title">
          {{ post.getYear() }}
          {% if loop.index == 1 %}
            {% include 'articles_right_links.twig' %}
          {% endif %}
        </div>
        {% set year = post.getYear() %}
      {% endif %}
      <a href="{{ post.getUrl(selected_lang) }}" class="blog-list-item clearfix{% if not post.visible %} is-hidden{% endif %}">
        <div class="blog-list-item-date">{{ post.getDate() }}</div>
        <div class="blog-list-item-title">{{ post.getText(selected_lang).title }}</div>
      </a>
    {% endfor %}
  </div>
</div>
{% endif %}