17 lines
312 B
Vue
17 lines
312 B
Vue
<template>
|
|
<NuxtLayout name="blog">
|
|
<BlogArchive :posts="posts" />
|
|
</NuxtLayout>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { BlogPost } from '~~/lib/types/post';
|
|
|
|
const { data: posts } = await useFetch<BlogPost[]>(`/api/blog`, {
|
|
params: {
|
|
body: false,
|
|
render: false,
|
|
},
|
|
});
|
|
</script>
|