Comment dire quelle page vous êtes sur Shopify Liquid

// you can use the 'template' object to check which page you are on.
/**
NOTE: I decided to use {% if %} conditional statements exclusively, 
because a few of Shopify theme's seemed to act strangely when trying 
to do the same by using {% else if %} - You are welcome to give it a 
shot if you like. Otherwise, the below should work fine... :)
**/

{% if template == 'index' %}
	// code to execute on index page goes here
{% endif %}
    
{% if template == 'collection' %}
	// code to execute on collection pages goes here
{% endif %}
    
{% if template == 'product' %}
	// code to execute on product pages goes here
{% endif %}
    
{% if template contains 'page' %}
	// code to execute on other "info" page templates goes here
{% endif %}
CoderHomie