templates/page/_includes/breadcrumb.html.twig line 1

Open in your IDE?
  1. {% set position = 1 %}
  2. <ul class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList">
  3.     {# ----- Rubrique ------------------------------------------------------- #}
  4.     <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  5.         <a href="" itemscope itemtype="https://schema.org/Thing" itemprop="item" itemid=""><span itemprop="name">Accueil</span></a>
  6.         <meta itemprop="position" content="{{ position }}">
  7.         {% set position = position + 1 %}
  8.     </li>
  9.     <li class="separator"></li>
  10.     {% if slug %}
  11.         <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  12.             <a href="/guide-inscription.html" itemscope itemtype="https://schema.org/Thing" itemprop="item" itemid="/guide-inscription.html"><span itemprop="name">Guide d'inscription</span></a>
  13.             <meta itemprop="position" content="{{ position }}">
  14.             {% set position = position + 1 %}
  15.         </li>
  16.         <li class="separator"></li>
  17.         <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  18.             <span itemprop="name">{{ slug }}</span>
  19.             <meta itemprop="position" content="{{ position }}">
  20.             {% set position = position + 1 %}
  21.         </li>
  22.     {% else %}
  23.         <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  24.             <span itemprop="name">Guide d'inscription</span>
  25.             <meta itemprop="position" content="{{ position }}">
  26.             {% set position = position + 1 %}
  27.         </li>
  28.     {% endif %}
  29. </ul>