stack/src/components/items/breadcrumb-item/breadcrumb-item.twig line 1

Open in your IDE?
  1. {%- set class_name = [
  2.   "i-breadcrumb",
  3.   "d-flex",
  4.   "align-items-center",
  5.   "u-color-primary u-posr u-fz-sm",
  6.   props.variant in ['homepage', 'current'] ? '--' ~ props.variant : null
  7. ]|join(' ')|trim -%}
  8. {%- set attrs = [
  9.   'class="' ~ class_name ~ '"',
  10. ] -%}
  11. {%- set attrs = attrs|join(' ')|trim -%}
  12. <li {{ attrs|raw }}>
  13.   {% if props.variant == "current" %}
  14.     <span class="u-fw-400 u-color-primary-300">
  15.       {{ com_props.title }}
  16.     </span>
  17.   {% else %}
  18.     {% include "@Components/link/link.twig" with {props: {
  19.       title: props.title,
  20.       url: props.url,
  21.       underline_initial: true,
  22.       color: "primary-only",
  23.       icon: props.variant == "homepage" ? {
  24.         src: "@Images/svg/home.svg",
  25.         size: "sm"
  26.       } : null,
  27.       extra_class: "i-breadcrumb__link"
  28.     }} %}
  29.   {% endif %}
  30. </li>