1
0
Fork 0

[FIX] about me: Image selection broken

This commit is contained in:
Jannik Beyerstedt 2021-03-20 21:02:20 +01:00
parent f1496b0653
commit c9f985c748

View file

@ -21,7 +21,7 @@ snippet('base/cont-header');
<p class="lead"><?php echo $page->featurette_text()->kirbytextinline() ?></p> <p class="lead"><?php echo $page->featurette_text()->kirbytextinline() ?></p>
</div> </div>
<div class="col-sm-3 col-12"> <div class="col-sm-3 col-12">
<?php if ($img = $page->images()->find($page->featurette_img())) { <?php if ($img = $page->featurette_img()->toFile()) {
$imgurl = $img->url(); $imgurl = $img->url();
$srcset = $img->srcset([ $srcset = $img->srcset([
'1x' => ['width'=>235, 'quality'=>70], '1x' => ['width'=>235, 'quality'=>70],