{% set crumbs = [] %} {% set current = {'crumb': this} %} {% for i in this._path.split("/") %} {% if current.crumb is not none %} {% if crumbs.insert(0, current.crumb) %}{% endif %} {% if current.update({"crumb": current.crumb.parent}) %}{% endif %} {% endif %} {% endfor %} {% for crumb in crumbs %} {% if this._path == crumb._path %}
  1. {{ crumb.title }}
  2. {% else %}
  3. {{ crumb.title }}
  4. {% endif %} {% endfor %}