Skip to content

Commit

Permalink
Update cookbook-recipe.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
texnixe committed Feb 14, 2023
1 parent b258d18 commit 59a4c43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Moving back to the Nunjuck's template for the index page, we adjust the call on
{% image item.poster.url, "Image", 'home', "(max-width: 480px) 480px, (max-width: 960px) 960px, 100vw" %}
```

The short code expects a `src for the image, in this case we are feeding it a poster thumbnail image via `item.poster.url`. Next, we can set an `alt` text value. Thirdly, we can set a folder name to store the images in, using `/assets/images` as a base.
The short code expects a `src` for the image, in this case we are feeding it a poster thumbnail image via `item.poster.url`. Next, we can set an `alt` text value. Thirdly, we can set a folder name to store the images in, using `/assets/images` as a base.

In this case, the images will be generated in an `/assets/images/home` folder. Finally, we can pass a set of sizes to trigger the source set images.

Expand Down

0 comments on commit 59a4c43

Please sign in to comment.