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