Reputation: 1
How to use this condition for multiple pages?
Like index and product page.
{% if template.name == "index" %}
do something
{% endif %}
Upvotes: 0
Views: 1216
Reputation: 1132
Try using something like this:
{% if template contains "index" or template contains "product" %}
do something
{% endif %}
Upvotes: 1