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

20 lines
398 B
Vue
Raw Normal View History

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