问题描述
多页怎么用这个条件?
喜欢索引和产品页面。
{% if template.name == "index" %}
do something
{% endif %}
解决方法
尝试使用这样的东西:
{% if template contains "index" or template contains "product" %}
do something
{% endif %}
多页怎么用这个条件?
喜欢索引和产品页面。
{% if template.name == "index" %}
do something
{% endif %}
尝试使用这样的东西:
{% if template contains "index" or template contains "product" %}
do something
{% endif %}