Skip to content

Commit

Permalink
Add additional instructions in the readme for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
geekysrm committed Oct 2, 2023
1 parent ad4df2d commit 5afd53a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/astro-product-gallery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ View Demo: [COLBY DEPLOY THIS ON NETLIFY PLS]

## 🧰 Using ProductGallery in a Astro project

To use the ProductGallery widget in a Astro app, first load its script:
1. To use the ProductGallery widget in a Astro app, first load its script:

```
<script src="https://product-gallery.cloudinary.com/all.js" type="text/javascript">
Expand All @@ -17,6 +17,11 @@ To use the ProductGallery widget in a Astro app, first load its script:
This will add a `cloudinary` property to the `window` object which will contain
a `productWidget` method that you can use to initialize the widget.

2. In `index.astro`, we are finding images containing the tags "gallery-images" and videos containing the tags "gallery-videos". Make sure to add these tags to your images and videos in the cloudinary console.
<img width="1132" alt="image" src="https://github.com/geekysrm/cloudinary-examples/assets/10224804/fab69e46-46b3-4be1-a0a7-a62da7419932">

Alternatively, you can change the tag names in `index.astro` to match what the images and videos are tagged in your cloudinary console.

## 🚀 Get Started with This Example

- Create an environment variable file `.env` and inside add:
Expand Down

0 comments on commit 5afd53a

Please sign in to comment.