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">
|
2022-10-16 13:28:47 +00:00
|
|
|
const { data: posts } = await useFetch('/api/blog', {
|
|
|
|
key: 'frontpage',
|
|
|
|
params: { limit: 16 },
|
|
|
|
});
|
2022-10-16 09:37:13 +00:00
|
|
|
</script>
|