image($filename = null)

Fetches any image by filename for the current page, or by path for any other page

Example

Fetching an image of the current page

<?= image('forrest.jpg')->url() ?>

Fetching an image from any other page

<?= image('projects/project-a/forrest.jpg')->url() ?>

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