When I have a images using this yaml.
hero_image:
label: Hero Image
type: files
multiple: false
required: yes
layout: cards
size: small
It saves as:
Hero-image:
- 5c65b7f9429803533b58195a_61905.jpeg
----
So when I try to output it the image fails.
<?php if($image = $page->hero_image()): ?>
<img src="<?= $image->url() ?>" alt="">
<?php endif ?>
I get this:
<img src="- 5c65b7f9429803533b58195a_61905.jpeg" alt="">
What is the dash? It should be:
<img src="5c65b7f9429803533b58195a_61905.jpeg" alt="">