(refactor) blog: limit fetchable data

This commit is contained in:
kakkokari-gtyih 2023-07-15 18:07:24 +09:00
parent 614f2bbd0d
commit 5b0e20423c

View File

@ -32,6 +32,6 @@
</template>
<script setup lang="ts">
const { data } = await useAsyncData('blog', () => queryContent('blog').sort({ date: -1 }).find());
const { data } = await useAsyncData('blog', () => queryContent('blog').only(['_path', 'navTitle', 'title', 'date']).sort({ date: -1 }).find());
const localePath = useLocalePath();
</script>