-
{%- case page.url -%}
{%- when "/search.html" -%}
-
{{ __.search | default: "Search" }}
{%- when "/404.html" -%}
-
404
{%- else -%}
{%- assign blocks = page.path | split: "/" -%}
{%- for block in blocks -%}
-
{%- if forloop.last -%}
{{ page.name }}
{%- else -%}
{{ block }}
{%- endif -%}
{%- endfor -%}
{%- endcase -%}