I try the following code but it doesn’t work
<?php $feature_home_img = $kirby->url('assets').'/images/home-1.jpg'; ?>
<img class="home-img" srcset="<?= $feature_home_img->srcset([300, 400, 600]) ?>" />
The console shows " Error. Call to a member function srcset() on string"
Is there any workaround?
Thanks!