Skip to content

Commit

Permalink
Update generateObject comment for img srcset
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwolf committed Nov 19, 2023
1 parent 5bdf390 commit 0a6d0f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ const LOWSRC_FORMAT_PREFERENCE = ["jpeg", "png", "svg", "webp", "avif"];
/*
Returns:
e.g. { img: { alt: "", src: "" }
e.g. { img: { alt: "", src: "", srcset: "", sizes: "" } }
e.g. { picture: [
{ source: { srcset: "", sizes: "" } },
{ source: { srcset: "", sizes: "" } },
{ img: { alt: "", src: "" } },
{ img: { alt: "", src: "", srcset: "", sizes: "" } },
]}
*/
function generateObject(metadata, attributes = {}) {
Expand Down

0 comments on commit 0a6d0f9

Please sign in to comment.