Finds a single $page object or a collection of $pages placed directly in /content by a single UID or a set of multiple UIDs.

  • $uri (args)
    The URI(s) of a subpage or multiple subpages
  • return ($page | $pages)


Fetch a single subpage

<?= $site->find('subpage-a')->title() ?>

Fetch multiple subpages

  <?php foreach($site->find('subpage-a', 'subpage-c', 'subpage-i') as $subpage): ?>
    <a href="<?= $subpage->url() ?>">
      <?= html($subpage->title()) ?>
  <?php endforeach ?>

Is something missing or incorrect? Edit this page on Github…