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>
<dd>
<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>
<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>
{/each}
</ul>
@@ -95,7 +104,7 @@
list
}
credit {
credit (filter: { status: { _eq: "published" }}) {
name
website
location {
@@ -104,6 +113,9 @@
slug
country {
slug
flag {
id
}
}
}
}