Shopify themes, liquid, logos, and UX
<div class="blog-containers">
{%- for article in section.settings.blog1.articles -%}
<div class="blog-items `sytem{{ forloop.index }}">
<div class="design-wrap">
<div class="mobile-cato">
<div class="artical-imges">
<img src="{{ article.image | img_url: 'master' }}" alt="{{ article.title }}">
</div>
<div class="arical-title-container">
<h2 class="txxt_w1">{{ article.title }}</h2>
</div>
</div>
</div>
</div>
{%- endfor -%}
</div>-------------------i want to show blog post based on tag example tag name: "sleep"
first of all you need to list all the tags using loop.
{% if article.tags.size > 0 %}
{% for tag in article.tags %}
{% if article.tags.size > 0 %}
{% for tag in article.tags %}
<a href="{{ blog.url }}/tagged/{{ tag | handle }}">{{ tag }}</a>
{% break %}
{% endfor %}
{% endif %}
<a href="{{ article.url }}">{{ article.title }}</a>
<a href="{{ article.url }}" title="read more">read more</a>
{% endfor %}
{% endif %}
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025