Reference

Guide

$site->breadcrumb()

Builds a breadcrumb collection

$site->breadcrumb(): Kirby\Cms\Pages

Return type

Kirby\Cms\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>

Source code

kirby/src/Cms/Site.php#L204