Better slugs, improvements to projects, some fixes
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 14m57s
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 14m57s
This commit is contained in:
10
src/components/MDX/IMG.astro
Normal file
10
src/components/MDX/IMG.astro
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
import Image from "astro/components/Image.astro";
|
||||
const { src, alt } = Astro.props;
|
||||
|
||||
import { getImageByPath } from "@lib/utils";
|
||||
|
||||
const imageSRC = getImageByPath(src)!;
|
||||
---
|
||||
|
||||
<Image src={imageSRC} alt={alt} />
|
Reference in New Issue
Block a user