_includes/shortcodes/responsive-image

Format repsonsive images

Since:
  • 1.0.0
Source:
Parameters:
NameTypeDescription
srcstring

Image filepath

Returns:
Type:
string

The rendered shortcode

Example
// In an Eleventy template
`${this.responsiveImage(src)}`

Members

(inner) cssClasses :string

An HTML class attribute

Source:
Type:
  • string

(inner) lowestSrc :string

The image file path for the smallest image size

Source:
Type:
  • string

(inner) src :Object

From the Cloudinary API

Source:
Type:
  • Object

(inner) stats :Promise.<Object>

Output from Eleventy’s Image plugin

Source:
Type:
  • Promise.<Object>