update how alt text is handled for ease of use with new form
This commit is contained in:
BIN
assets/img/2026-imbolc/hawke.jpg
Normal file → Executable file
BIN
assets/img/2026-imbolc/hawke.jpg
Normal file → Executable file
Binary file not shown.
|
Before Width: | Height: | Size: 634 KiB After Width: | Height: | Size: 1.1 MiB |
@ -4,7 +4,14 @@ const makeArtistImg = function(artistImg) {
|
||||
|
||||
let img = document.createElement("img");
|
||||
img.src = artistImg.src;
|
||||
img.alt = artistImg.alt;
|
||||
|
||||
if (typeof artistImg.alt === "string") img.alt = artistImg.alt;
|
||||
else {
|
||||
let fullAlt = `a ${artistImg.alt.length} image collage.`
|
||||
for (let i = 0; i < artistImg.alt.length; i++)
|
||||
fullAlt += ` ${i}: ${artistImg.alt[i]}`
|
||||
img.alt = fullAlt;
|
||||
}
|
||||
|
||||
imgDiv.append(img);
|
||||
return imgDiv;
|
||||
|
||||
@ -3,7 +3,13 @@
|
||||
"id": "hawke",
|
||||
"img": {
|
||||
"src": "/assets/img/2026-imbolc/hawke.jpg",
|
||||
"alt": "4 image collage. image 1: Coulter pinecone with dried oranges, & apples, dried flowers, & bay leaves. image 2: a collage titled 'when the black rock opens'. artist statement on the piece: ntentional Collage: seeds have been planted in the line of the future. There is a promise of what will be growing when it is time for us to understand. image 3: Coulter pinecone with feathers, moon, snail shell, dried flowers, spices, bay leaves, and found sculpted porcelain face. image 4: jennifer hawke, the artist, a white person with a beard and knowing eyes. the top half of their face is painted blue with a white heart, and they are wearing a huge elaborate flower crown, a red shawl, and several chunky pendants."
|
||||
"alt": [
|
||||
"A green feather emerging from cracked earth, curled in a spiral",
|
||||
"Two crane figures with their beaks meeting in the middle where a large circle is suspended in the air. The sky behind it is stormy and full of clouds. The hill they are standing on has a large crack running down the center, with ancient carved stone animal heads around the crack.",
|
||||
"A vintage map of the Bremerton area. Super imposed throughout the map is a sacred geometry pattern called the Flower of Life. A red Octopus is emerging from the pattern.",
|
||||
"A bear curled up in a ball with its paw over its eyes. The ground is covered in snow and there are bird tracks in between stones poking out. In the sky above, there is a comet amongst the stars.",
|
||||
"A vintage map of the Bremerton area. Super imposed throughout the map is a sacred geometry pattern called the Flower of Life. A Dungeness crab is emerging from the pattern."
|
||||
]
|
||||
},
|
||||
"name": "Jennifer Hawke",
|
||||
"bio": [
|
||||
|
||||
Reference in New Issue
Block a user