Skip to content

eleventy-img: add classes, only when specified #104

Open
@xplosionmind

Description

Only in some cases, it would be useful to pass CSS classes to images.

See 11ty/eleventy-img#97, and check the imgClass variable I created in eleventy.config.images.js.

If I uncomment the current config, undefined class is printed where no class is specified.

Metadata

Assignees

No one assigned

    Labels

    enhancementMake something smoother, faster, better

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions