$page->images()
Returns a $files collection with all image files (jpg, png, gif, etc.) in the page directory
-
return ($files)
Example
<section class="gallery">
<?php foreach($page->images() as $image): ?>
<figure>
<a href="<?= $image->url() ?>">
<img src="<?= $image->url() ?>" alt="">
</a>
</figure>
<?php endforeach ?>
</section>