Se mejora la detección de los posts y la estructura de estos

This commit is contained in:
2024-10-23 18:03:17 +02:00
parent effd03c419
commit 492933b9bd
2 changed files with 89 additions and 55 deletions

View File

@@ -0,0 +1,12 @@
---
import { Image } from "astro:assets";
const { src, width, height, alt } = Astro.props;
let size;
if (width || height) {
size = `width="${width}" height="${height}"`
} else {
size = `inferSize`
}
---
<Image src={src} alt={alt} inferSize class="img-fluid"/>