I have a list of projects on my homepage that display only the picture titled ‘home-page.jpg’
<?php if($image = $project->image('home-page.jpg')): ?>
<img src="<?php echo $image->url() ?>" alt="<?php echo $project->title()->html() ?>">
<?php endif ?>
I want to exclude that picture from being visible on the actual project page. At the moment I have:
<?php foreach($page->images()->sortBy('sort', 'asc') as $image): ?>
<figure>
<img src="<?php echo $image->url() ?>" alt="<?php echo $page->title()->html() ?>">
</figure>
<?php endforeach ?>
And this brings in ‘home-page.jpg’ but I only want that visible on the home page