lumeland / lume

🔥 Static site generator for Deno 🦕
https://lume.land
MIT License
1.88k stars 86 forks source link

Picture plugin doesn't optimize image #526

Closed cawa-93 closed 10 months ago

cawa-93 commented 10 months ago

Version

2.0.0

Platform

Windows 11

What steps will reproduce the bug?

  1. Clone repo https://github.com/cawa-93/dotore-website/tree/e1b128b8cb6020cd8892175c5d7573487048e6ca
  2. Run deno task serve
  3. Open site.

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior?

Main page contain <picture> tag with .webp source.

What do you see instead?

Raw <img> tag with transform-images attribute

Additional information

No response

oscarotero commented 10 months ago

Thanks! It's a bug in picture plugin, that is using the wrong attribute name: https://github.com/lumeland/lume/blob/main/plugins/picture.ts#L50

I'll fix it asap.

oscarotero commented 10 months ago

Fixed in Lume v2.0.1