22 lines
453 B
Vue
Raw Normal View History

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