语法 .liquid 失败(学习阶段)

Fail on that syntax .liquid (learning stage)

在学习 .liquid 的过程中,我找不到关于该语法的问题:

{{ 'visa.svg' | asset_img_url | image_url: width: 36, height: 36 | image_tag: alt: 'Visa', srcset: nil, class: 'filter-green', loading: 'lazy' }}

失败:液体错误(sections/footer.液体线 264):无效url 输入

失败在哪里? :(

这是因为 'visa.svg' 不是图像类型对象('visa.png' 也不是)。

asset_img_url returns URL 和 image_url 需要图像对象。于是就出现了“输入错误”的冲突。

来自docs

image_url Returns the URL of an image. You can use image_url on the following objects:

product, variant, line, item, collection, article, image

The Image Object

An image object returns information about an image. Image objects are usually attributes of other objects, such as product, variant, collection, and article.