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

20 lines
398 B
Vue

<template>
<NuxtLayout name="blog">
<Head>
<Title>Archive | Evert's Blog | lunasqu.ee</Title>
</Head>
<BlogArchive :posts="posts" />
</NuxtLayout>
</template>
<script setup lang="ts">
import type { BlogPost } from '~~/lib/types/post';
const { data: posts } = await useFetch<BlogPost[]>(`/api/blog`, {
key: `blog-archive`,
params: {
render: false,
},
});
</script>