feat: add image module
This commit is contained in:
10
components/content/image.vue
Normal file
10
components/content/image.vue
Normal file
@@ -0,0 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
const { src } = defineProps<{ src: string }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<figure>
|
||||
<img :src="`/images/posts/${src}`" />
|
||||
<figcaption class="text-center"><Markdown /></figcaption>
|
||||
</figure>
|
||||
</template>
|
Reference in New Issue
Block a user