This commit is contained in:
parent
6c8cdf21d2
commit
84aa4cac17
4 changed files with 3 additions and 4 deletions
|
|
@ -9,7 +9,7 @@
|
|||
<?php foreach($site->children()->listed() as $product): ?>
|
||||
<article class="store__product">
|
||||
<figure>
|
||||
<?php if($cover = $product->files()->sort()->first()): ?>
|
||||
<?php if($cover = $product->files()->sortBy('sort', 'asc')->first()): ?>
|
||||
<?php snippet('picture', [
|
||||
'file' => $cover,
|
||||
'alt' => $product->title()->html(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue