$site->breadcrumb()

Returns a $pages collection, prepared for a foreach loop to generate a breadcrumb

  • return ($pages)

Example

<nav class="breadcrumb" role="navigation">
  <ul>
    <?php foreach($site->breadcrumb() as $crumb): ?>
    <li>
      <a href="<?= $crumb->url() ?>">
        <?= html($crumb->title()) ?>
      </a>
    </li>
    <?php endforeach ?>
  </ul>
</nav>