{% set breadcrumbs = doc.get_breadcrumbs() %} {% set space = breadcrumbs.space %} {# Skip the first ancestor — it's the wiki space's root group, already represented by the space name. #} {% set ancestors = breadcrumbs.ancestors[1:] if breadcrumbs.ancestors else [] %}
{% if space or ancestors %}
{% if space %}{{ space.space_name }}{% endif %} {% for ancestor in ancestors %} ›{{ ancestor.title }} {% endfor %}
{% endif %}

{{ doc.title }}

{{ doc.get_formatted("modified") }}
{{ doc.rendered_content_for_pdf or "" }}