Files
Cloud-Blog/pages/index.vue
nurRiyad 9e87c32964 run prettier
Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
2023-01-07 00:50:45 +06:00

23 lines
543 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>