I wrote code that worked flawlessly, but the next day everything broke. Did the inner loop now output the same number of elements as in the first one? What am I doing wrong?
{%- assign category_names = site.data.list_of_sections_with_categories.yagodnye-kultury -%}
{%- for post in site.posts limit: 3 %}
{%- for list_of_categories in category_names -%}
{%- if post.categories contains list_of_categories -%}
{%- include /second-section-item-1-test.html -%}
{%- endif -%}
{%- endfor -%}
{% endfor %}