标签搜索

Shopify Blog Listing Code

sunshine
2023-01-14 / 0 评论 / 43 阅读
温馨提示:
本文最后更新于2023年05月31日,已超过466天没有更新,若内容或图片失效,请留言反馈。
<aside>
  {%- if section.settings.blog_show_tags -%}
    <ul>
      <li>
        {%- for tag in blog.all_tags -%}
          <a href="{{ blog.url }}/tagged/{{ tag | handle }}">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}
        {%- endfor -%}
      </li>
    </ul>
  {%- endif -%}
</aside>

{% schema %}
{
  "name": "Blog posts",
  "settings": [
    {
      "type": "checkbox",
      "id": "blog_show_tags",
      "label": "Show tags",
      "default": true
    }
  ]
}
{% endschema %}
感觉很棒,欢迎点赞 OR 打赏~
1
分享到:

评论 (0)

取消