Skip to content

v2.1.0

Compare
Choose a tag to compare
@liamfiddler liamfiddler released this 26 Oct 00:27
· 26 commits to master since this release

This release improves support for relative file paths in src attributes and image paths without file extensions.

transformImgPath now receives an optional second parameter containing the outputPath of the file being processed, as well as the outputDir, inputPath, and inputDir values from eleventy config.

This release also adds the setWidthAndHeightAttrs config option which allows you to turn off the setting of width and height attributes being added to img elements.