lunasqu.ee-nuxt/pages/blog/index.vue

12 lines
256 B
Vue
Raw Normal View History

2022-10-16 09:37:13 +00:00
<template>
<NuxtLayout name="blog">
<template v-for="post of posts">
<BlogPost :post="post" :detail="false" />
</template>
</NuxtLayout>
</template>
<script setup lang="ts">
const { data: posts } = await useFetch('/api/blog');
</script>