{% if mode == 'edit' %}
{% else %}
{{ page.slug }}
{# Only show the full path when it conveys more than the bare slug:
nested pages (/parent/child/) or the home page (shadowed to /).
For a plain root page the path is just //, which stacked
under the slug reads as the page being nested under itself. #}
{% if full_path and full_path != '/' ~ page.slug ~ '/' %}