{% load i18n wagtailadmin_tags %} {% comment "text/markdown" %} The breadcrumb component is reused across most of Wagtail's headers. Variables this template accepts: `items` - A list of {"url": Union[str, None], "label": str, "sublabel": Union[str, None]} dicts `classname` - Modifier classes `is_expanded` - Whether the breadcrumbs are always expanded or not, if True the breadcrumbs will not be collapsible `icon_name` - The name of the icon to display before the final item when the breadcrumbs are collapsed {% endcomment %} {% with breadcrumb_link_classes='w-flex w-items-center w-text-text-label w-pr-0.5 w-text-14 w-no-underline w-outline-offset-inside w-border-b w-border-b-2 w-border-transparent w-box-content hover:w-border-current hover:w-text-text-label' breadcrumb_item_classes='w-h-full w-flex w-items-center w-overflow-hidden w-transition w-duration-300 w-whitespace-nowrap w-flex-shrink-0' icon_classes='w-w-4 w-h-4 w-ml-3' %} {# Breadcrumbs are visible on mobile by default but hidden on desktop #}
{% if not is_expanded %} {% endif %}
{% endwith %}