diff --git a/components/category/card.vue b/components/category/card.vue
index 613e5bf..b1fde1d 100644
--- a/components/category/card.vue
+++ b/components/category/card.vue
@@ -33,16 +33,17 @@ const picAColor = ref(`${color.at(getRandomInt(0, 8))}`)
-
diff --git a/components/category/topic.vue b/components/category/topic.vue
index b548601..ee0028a 100644
--- a/components/category/topic.vue
+++ b/components/category/topic.vue
@@ -17,8 +17,8 @@ const category = computed(() => {
-
-
+
+
#{{ category }}
diff --git a/pages/categories/[category].vue b/pages/categories/[category].vue
index 6b9d229..4e79417 100644
--- a/pages/categories/[category].vue
+++ b/pages/categories/[category].vue
@@ -12,18 +12,18 @@ const category = computed(() => {
return strName
})
-const { data } = await useAsyncData('home', () =>
+const { data } = await useAsyncData(`category-data-${category.value}`, () =>
queryContent('/blogs')
.where({ tags: { $contains: category.value } })
.find(),
)
-const formatedData = computed(() => {
+const formattedData = computed(() => {
return data.value?.map((articles) => {
return {
path: articles._path,
title: articles.title || 'no-title available',
- description: articles.description || 'no-descriptoin available',
+ description: articles.description || 'no-description available',
image: articles.image || '/nuxt-blog/no-image_cyyits.png',
alt: articles.alt || 'no alter data available',
ogImage: articles.ogImage || '/nuxt-blog/no-image_cyyits.png',
@@ -52,22 +52,20 @@ defineOgImage()
-
-
-
-
-
-
+
+
diff --git a/pages/categories/index.vue b/pages/categories/index.vue
index 8cf4edf..18ebbc2 100644
--- a/pages/categories/index.vue
+++ b/pages/categories/index.vue
@@ -24,7 +24,7 @@ useHead({
{
name: 'description',
content:
- 'Blow All the topics are listed on which either I have written a blog or will write a blog in near future.',
+ 'Below All the topics are listed on which either I have written a blog or will write a blog in near future.',
},
],
titleTemplate: 'Riyad\'s Blog - %s',
@@ -37,9 +37,7 @@ defineOgImage()
-
-
-
+