remove await and resize img

Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
nurRiyad
2022-12-22 03:14:50 +06:00
parent bc5a4b730d
commit 25b94a6859
9 changed files with 11 additions and 32 deletions

View File

@@ -3,9 +3,7 @@ definePageMeta({
layout: "list",
});
const { data, pending } = await useLazyAsyncData("blogs", () =>
queryContent("/").find()
);
const { data } = useLazyAsyncData("blogs", () => queryContent("/").find());
const getAllPost = computed(() => {
const allpost = data.value || [];
@@ -30,12 +28,7 @@ const getAllPost = computed(() => {
<div
class="container mx-auto max-w-6xl font-ibmmono antialiased min-h-[72vh]"
>
<div v-if="pending">
<template v-for="n in 5" :key="n">
<archive-card-loader />
</template>
</div>
<div v-else>
<div>
<template v-for="pp in getAllPost" :key="pp">
<archiev-card
:title="pp.title"