_includes/shortcodes/responsive-background

Defines CSS rules for a page’s repsonsive background image

Source:
Parameters:
NameTypeDescription
srcstring

Image filepath

Returns:
Type:
string

CSS

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

Members

(inner) metadata :Promise.<Object>

Transform images from Cloudinary using Eleventy’s Image plugin

Source:
See:
Type:
  • Promise.<Object>

Methods

(inner) sourceAttr(imageFormat) → {string}

Defines markup for a source element

Source:
Parameters:
NameTypeDescription
imageFormatArray.<Object>

From Eleventy Image

Returns:
Type:
string

HTML