Layout Shopify模板'';如果tage从未关闭过';

Layout Shopify模板'';如果tage从未关闭过';,layout,themes,shopify,liquid,Layout,Themes,Shopify,Liquid,如果有第二张图片出现,尝试获取液体添加类时会有第二张图片,但当我运行“纱线启动”时,终端会弹出“如果标签从未关闭” {%液体 分配具有第二个图像=false 如果是产品图片[1] 分配有第二个图像=真 恩迪夫 %} 您没有关闭您发布的代码第10行的if语句: <div class="product-tile_image-wrapper"{% if has_second_image %} style= "background-image: url({{ prod

如果有第二张图片出现,尝试获取液体添加类时会有第二张图片,但当我运行“纱线启动”时,终端会弹出“如果标签从未关闭”

{%液体
分配具有第二个图像=false
如果是产品图片[1]
分配有第二个图像=真
恩迪夫
%}

您没有关闭您发布的代码第10行的if语句:

<div class="product-tile_image-wrapper"{% if has_second_image %} style= "background-image: url({{ product.images[1] | img_url: '700x' }});">

这应该可以解决这个问题:

<div class="product-tile_image-wrapper"{% if has_second_image %} style= "background-image: url({{ product.images[1] | img_url: '700x' }});"{% endif %}>

您没有关闭您发布的代码第10行的if语句:

<div class="product-tile_image-wrapper"{% if has_second_image %} style= "background-image: url({{ product.images[1] | img_url: '700x' }});">

这应该可以解决这个问题:

<div class="product-tile_image-wrapper"{% if has_second_image %} style= "background-image: url({{ product.images[1] | img_url: '700x' }});"{% endif %}>