This commit is contained in:
16
frontend/app/components/content/ProseImg.vue
Normal file
16
frontend/app/components/content/ProseImg.vue
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<!-- components/content/ProseImg.vue -->
|
||||||
|
<template>
|
||||||
|
<NuxtImg
|
||||||
|
:src="src"
|
||||||
|
:alt="alt"
|
||||||
|
format="webp"
|
||||||
|
loading="lazy"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
defineProps({
|
||||||
|
src: String,
|
||||||
|
alt: String
|
||||||
|
})
|
||||||
|
</script>
|
||||||
@@ -29,5 +29,10 @@ export default defineContentConfig({
|
|||||||
date: z.string()
|
date: z.string()
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
|
},
|
||||||
|
markdown: {
|
||||||
|
tags: {
|
||||||
|
img: 'ProseImg'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user