From ec4ddcf7c9e3f062b5335e60ada3b9073697e04b Mon Sep 17 00:00:00 2001 From: nurRiyad Date: Tue, 20 Dec 2022 23:38:40 +0600 Subject: [PATCH] update blog index Signed-off-by: nurRiyad --- components/BlogCard.vue | 10 +++++++++- components/ListHero.vue | 21 +++++++++++++++++++-- pages/about.vue | 2 +- pages/blogs.vue | 2 +- pages/index.vue | 5 ++++- pages/tags/[topic].vue | 5 +---- pages/tags/index.vue | 2 +- 7 files changed, 36 insertions(+), 11 deletions(-) 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 @@