<div class="new-grid"> {% assign count = "0" %} {%- for article in blog.articles -%} {% if article.tags contains 'プレスリリース' %} {% if count < "3" %} {%- liquid assign style = 'medium' if forloop.first assign style = 'medium' endif -%} {%- render 'article-grid-item-times', section: section, blog: blog, article: article, style: style, image_size: section.settings.blog_image_size -%} {% capture count %}{{ count | plus: 1 }}{% endcapture %} {% else %} {% break %} {% endif %} {% endif %} {%- endfor -%} </div>