JustGoodUI / dante-astro-theme

Dante, a single-author blog and portfolio theme for Astro.js.
https://dante-astro-theme.netlify.app/
GNU General Public License v3.0
246 stars 118 forks source link

Use `<Picture />` out-of-the-box? #5

Open h-enk opened 8 months ago

h-enk commented 8 months ago

Thanks for this beautiful and high-quality theme!

It would be nice to use the built-in <Picture /> Astro component out-of-the-box — to display a responsive image with multiple formats and/or sizes.

Also note that, the current implementation does not add width and height to an image — causing a LayoutShift — using the <Picture /> component will fix this.

astab commented 8 months ago

Thank you @h-enk, I'm glad you like it. Regarding <Picture /> Astro.js component, yes, this is good idea. I will add it in the theme update.

h-enk commented 8 months ago

Super!