Detecting Replo Content with Liquid

Last updated: August 27, 2025

Replo produces a standardized template which includes replo. in the template.

Pages

To detect whether the current page is a Replo page in Liquid, you can use the following snippet:

{% if template.suffix contains "replo" %}
  <!-- Put HTML which only applies to Replo pages here -->
{% endif %}

Similarly, to exclude certain code on Replo pages, you can use the following snippet:

{% unless template.suffix contains "replo" %}
<!-- Put HTML which only applies to Replo pages here -->
{% endunless %}