feat: add image module

This commit is contained in:
2022-08-10 17:22:08 -04:00
parent e56325677c
commit f4c481b81d
10 changed files with 68 additions and 48 deletions

View 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>