<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>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter