Se mejora la detección de los posts y la estructura de estos
This commit is contained in:
12
src/components/ImagenMD.astro
Normal file
12
src/components/ImagenMD.astro
Normal 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"/>
|
||||
Reference in New Issue
Block a user