{% assign posts = site.posts where: “lang”, page.lang %} {% assign counter = 0 %} {% for item in posts %} {% unless item.published == false %} {% assign counter=counter | plus:1 %} {% endunless %} {% endfor %} Общее количество проектов: {{ counter }} {% for post in posts %} {% assign currentYear = post.date | date: “%Y” %} {% if currentYear != newYear %} {% unless forloop.first %}</ul>{% endunless %} {{ currentYear }} {% assign newYear = currentYear %} {% endif %} {{ post.date | date:”%d %b” }} · {{ post.title }} {% if forloop.last %}{% endif %} {% endfor %}