{% assign url = page.url | remove:'.html' | split: "/" %} {% assign path = url | pop %} {% capture parent_url %} {% for dir in path offset: 1 %}{{ dir | append: "/" }}{% endfor %} {% endcapture %} {% if path.size == 1 %} Home {% else %} « {{ path | last }} {% endif %}