Files
Cloud-Blog/pages/index.vue
nurRiyad 2fcecba8d1 add test data
Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
2023-01-06 01:01:04 +06:00

30 lines
596 B
Vue

<script lang="ts" setup>
useHead({
title: "Home",
meta: [
{
name: "description",
content: "Home",
},
],
titleTemplate: "Elon's Blog - %s",
});
const { data } = await useAsyncData("home", () =>
queryContent("/blogs").find()
);
</script>
<template>
<main class="container mx-auto">
<div class="flex m-5 p-3 flex-wrap">
<template v-for="n in data" :key="n">
<BlogCard
:title="n.title || ''"
:excerpt="n.description"
image="sdlfkj"
:slug="n._path"
/>
</template>
</div>
</main>
</template>