better image alt text
This commit is contained in:
parent
f375043b49
commit
be5464fa1d
@ -178,7 +178,13 @@ const MasonryGallery = ({
|
||||
}`}
|
||||
>
|
||||
<GatsbyImage
|
||||
alt={getName(image)}
|
||||
alt={
|
||||
image.fields?.imageMeta?.meta?.Keywords?.length
|
||||
? `image of ${image.fields?.imageMeta?.meta?.Keywords.join(
|
||||
" and "
|
||||
)}. ${getName(image)}`
|
||||
: getName(image)
|
||||
}
|
||||
className="w-full"
|
||||
image={img}
|
||||
objectFit="cover"
|
||||
|
Loading…
x
Reference in New Issue
Block a user