diff --git a/components/BlogCard.vue b/components/BlogCard.vue index 8a48010..072b8a7 100644 --- a/components/BlogCard.vue +++ b/components/BlogCard.vue @@ -2,6 +2,8 @@ const props = defineProps({ title: String, description: String, + date: String, + type: String, path: String, }); @@ -14,7 +16,13 @@ const props = defineProps({ > {{ title }} -

+

+ +

{{ date }}

+

|

+

{{ type }}

+
+

{{ description }}

diff --git a/components/ListHero.vue b/components/ListHero.vue index 456c907..a20d940 100644 --- a/components/ListHero.vue +++ b/components/ListHero.vue @@ -1,14 +1,31 @@ diff --git a/pages/about.vue b/pages/about.vue index 25af9a5..c392579 100644 --- a/pages/about.vue +++ b/pages/about.vue @@ -3,7 +3,7 @@ definePageMeta({ layout: "list", }); -const { data } = await useAsyncData("home", () => queryContent("/").find()); +const { data } = await useAsyncData("about", () => queryContent("/").find()); const getAllPost = computed(() => { const allpost = data.value || []; diff --git a/pages/blogs.vue b/pages/blogs.vue index 25af9a5..47fa468 100644 --- a/pages/blogs.vue +++ b/pages/blogs.vue @@ -3,7 +3,7 @@ definePageMeta({ layout: "list", }); -const { data } = await useAsyncData("home", () => queryContent("/").find()); +const { data } = await useAsyncData("blogs", () => queryContent("/").find()); const getAllPost = computed(() => { const allpost = data.value || []; diff --git a/pages/index.vue b/pages/index.vue index 26b1843..3683ba1 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,5 +1,5 @@