$site->images()

Returns a $files collection with all images (jpg, png, gif, etc.) placed directly in /content

  • return ($files)

Example

<section class="gallery">
  <?php foreach($site->images() as $image): ?>
  <figure>
    <a href="<?= $image->url() ?>">
      <img src="<?= $image->url() ?>" alt="">
    </a>
  </figure>
  <?php endforeach ?>
</section>