Add flag to published photography credit locations

This commit is contained in:
2021-12-06 15:04:40 +01:00
parent 8ac954b1a2
commit bb8d33b3d8

View File

@@ -65,9 +65,18 @@
</dt> </dt>
<dd> <dd>
<ul> <ul>
{#each location as { location_id: { name, slug: slugLocation, country: { slug: slugCountry }}}, index} {#each location as { location_id: { name, slug: slugLocation, country: { slug: slugCountry, flag }}}, index}
<li> <li>
<a href="/{slugCountry}/{slugLocation}" sveltekit:noscroll tabindex="0"> <a href="/{slugCountry}/{slugLocation}" sveltekit:noscroll tabindex="0">
<Image
id={flag.id}
sizeKey="square-small"
width={16}
height={16}
alt="Flag of {slugCountry}"
/>
<span>{name}</span>
</a>
</li> </li>
{/each} {/each}
</ul> </ul>
@@ -95,7 +104,7 @@
list list
} }
credit { credit (filter: { status: { _eq: "published" }}) {
name name
website website
location { location {
@@ -104,6 +113,9 @@
slug slug
country { country {
slug slug
flag {
id
}
} }
} }
} }