Four recipe section images depict another cuisine
Owner:
Ivan Hawkes
references:
p2-us-card-image-alt-text
Cuisine images show the wrong cuisine
Three pairs of cuisine sections share one featured.webp, so four sections
display a label that is not theirs.
Cuisine images show the wrong cuisine
-
content/post/recipe/american/featured.webpandcontent/post/recipe/australian/featured.webp(digest86757ab8) are the same green “Pastries” title card; each section gets an image of its own food. -
content/post/recipe/mexican/featured.webpandcontent/post/recipe/middle-eastern/featured.webp(digestbdf27870) are the same green “Middle Eastern” title card; Mexican gets a Mexican dish. -
content/post/recipe/japanese/featured.webpandcontent/post/recipe/chinese/featured.webp(digestc90fea9a) are the same Mongolian beef plate; Japanese gets a Japanese dish. - Images are added through Git LFS.
- Each of the four sections’
resourcesparams describe the new image:params.captionis the alt text of what is shown,params.titlethe caption under it, and no alt text names another cuisine.
Acceptance Criteria
md5sum content/post/recipe/*/featured.webp | awk '{print $1}' | sort | uniq -dprints nothing: no two cuisine sections share an image.- A crop of each of the 13 cuisine
featured.webpfiles shows food, and the words printed on it, if any, name its own cuisine. grep -A4 '^resources:' content/post/recipe/*/_index.mdshows aparams.captionnaming that section’s cuisine, for all 13 sections.pnpm run testpasses, html-validate and heading checks included.
Not in scope
- Sizing card variants:
p2-us-featured-images. - Alt text for images that show the right thing:
p2-us-card-image-alt-text, done.