Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xplosionmind opened this issue Jan 5, 2024 · 0 comments
Open

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

xplosionmind opened this issue Jan 5, 2024 · 0 comments
Labels
enhancement Make something smoother, faster, better

Comments

@xplosionmind
Copy link
Owner

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.

@xplosionmind xplosionmind added the enhancement Make something smoother, faster, better label Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Make something smoother, faster, better
Projects
None yet
Development

No branches or pull requests

1 participant