@Akhilkotha96 could you clarify?
If you mean, you only want some code to be rendered on the homepage, you could use
{% if template.name == "index" %} do something {% endif %}
or if you want to check which template is being used, something along the lines of this would work
{% if template contains 'page.templatename' %} do something {% endif %}
This worked for me, thanks a lot @Leysam !
shopify request object
I used in one of the snippet for highlighting the navigations
User | Count |
---|---|
441 | |
207 | |
104 | |
92 | |
90 |