diff --git a/src/components/GalleryImage.js b/src/components/GalleryImage.js index 9a7dd2f..72123d9 100644 --- a/src/components/GalleryImage.js +++ b/src/components/GalleryImage.js @@ -21,6 +21,11 @@ const GalleryImage = ({ data }) => { const name = getName(image); const meta = getMeta(image); + let locationString; + if (meta.iptc.city || meta.iptc.province_or_state) { + const location = [meta.iptc.city, meta.iptc.province_or_state].filter(Boolean); + locationString = location.join(', '); + } const vibrant = getVibrant(image, true); const orientationClasses = ar > 1 ? 'flex-col mx-auto' : 'portrait:mx-auto landscape:mx-5 landscape:flex-row-reverse portrait:flex-col'; @@ -56,17 +61,26 @@ const GalleryImage = ({ data }) => { {hasName(image) &&
{meta.iptc.caption}
- {shutterSpeed &&