Mephisto conditional display of liquid include for different page types


/ Published in: Rails
Save to your folder(s)



Copy this code and paste it in your HTML
  1. {% unless mode == 'page' %}
  2. {% include 'shared' %}
  3. {% else %}
  4. {% include 'page' %}
  5. {% endunless %}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.