Add Poster image from Shop page

This commit is contained in:
2021-11-03 22:01:38 +01:00
parent 230a5568e8
commit 439cdaee98
2 changed files with 22 additions and 5 deletions

View File

@@ -71,8 +71,11 @@
<section class="shop-page__posters grid">
<h3>View all of our available posters</h3>
<div class="set">
{#each posters as { location }}
<Poster slug={location.slug} />
{#each posters as { location, photos_product }}
<Poster
location={location}
image={photos_product.length && photos_product[1].directus_files_id}
/>
{/each}
</div>
<div class="subscribe">