Format repsonsive images
- Since:
- 1.0.0
- Source:
Parameters:
Name | Type | Description |
---|---|---|
src | string | Image filepath |
Returns:
- Type:
string
The rendered shortcode
Example
// In an Eleventy template
`${this.responsiveImage(src)}`
Members
(inner) cssClasses :string
An HTML class
attribute
Type:
string
(inner) lowestSrc :string
The image file path for the smallest image size
Type:
string
(inner) src :Object
From the Cloudinary API
Type:
Object
(inner) stats :Promise.<Object>
Output from Eleventy’s Image plugin
Type:
Promise.<Object>