thuliteio / images

Official images integration for Thulite
https://images.thulite.io
MIT License
1 stars 0 forks source link

Switches to lazyimg base #5

Closed h-enk closed 2 years ago

h-enk commented 2 years ago

Adds in addition to hugo-mods/lazyimg:

Fixes W3C Markup Validator errors:

  1. Element noscript not allowed as child of element picture in this context. (Suppressing further errors from this subtree.)
  2. When the srcset attribute has any image candidate string with a width descriptor, the sizes attribute must also be present.

Ad 1. Updated ./layouts/partials/renderer/lqip.html + ./layouts/partials/renderer/lqip-webp.html, and created ./layouts/partials/renderer/img.html Ad 2. Added to ./layouts/partials/renderer/native.html (on line 8) the sizes default value: sizes="100vw"

Does not support (yet):