{% capture url_parts %} {{ page.url | remove: "/index.html" | replace:'/'," " }} {% endcapture %} {% capture num_parts %} {{ url_parts | number_of_words | minus: 1 }} {% endcapture %} {% assign previous="" %}