feat: add remaining blogs

This commit is contained in:
2022-08-10 18:05:40 -04:00
parent ec6a5df04b
commit 81a7f8b541
28 changed files with 715 additions and 3 deletions

View File

@@ -1,10 +1,15 @@
<script setup lang="ts">
const { src } = defineProps<{ src: string }>();
const imgSrc =
src.startsWith("http://") || src.startsWith("https://")
? src
: `/images/posts/${src}`;
</script>
<template>
<figure>
<img :src="`/images/posts/${src}`" />
<figure class="flex flex-col items-center">
<img :src="imgSrc" />
<figcaption class="text-center"><Markdown /></figcaption>
</figure>
</template>