diff --git a/app/config/index.ts b/app/config/index.ts
index 9e84c12..113a2fa 100644
--- a/app/config/index.ts
+++ b/app/config/index.ts
@@ -1,4 +1,6 @@
-const siteConfig = {
+import type { SiteConfig } from "~/types/nav";
+
+const siteConfig: SiteConfig = {
siteMeta: {
title: "RhenCloud's Blog",
description: "一个普普通通的技术博客,分享技术,记录日常,传递一些有趣的想法。",
diff --git a/app/pages/about.vue b/app/pages/about.vue
index fa51914..a05940e 100644
--- a/app/pages/about.vue
+++ b/app/pages/about.vue
@@ -1,9 +1,18 @@
diff --git a/app/pages/categories/[category].vue b/app/pages/categories/[category].vue
index a2c3fd0..73897dc 100644
--- a/app/pages/categories/[category].vue
+++ b/app/pages/categories/[category].vue
@@ -27,7 +27,7 @@ const formattedData = computed(() => {
path: articles.path,
title: articles.title || "no-title available",
description: articles.description || "no-description available",
- image: articles.image || "/blogs-img/blog.jpg",
+ image: articles.image || getRandomFallbackImage(),
alt: articles.alt || "no alter data available",
date: articles.date || "not-date-available",
tags: articles.tags || [],
@@ -39,7 +39,7 @@ const formattedData = computed(() => {
});
useHead({
- title: category.value,
+ title: `Category: ${category.value}`,
meta: [
{
name: "description",
diff --git a/app/pages/posts/[post].vue b/app/pages/posts/[post].vue
index 805e4a1..0ff01bd 100644
--- a/app/pages/posts/[post].vue
+++ b/app/pages/posts/[post].vue
@@ -28,9 +28,9 @@ const data = computed(() => {
});
useHead({
- title: siteConfig.siteMeta.title || "",
+ title: `${data.value.title} - ${siteConfig.siteMeta.title}`,
meta: [
- { name: "description", content: siteConfig.siteMeta.description },
+ { name: "description", content: data.value.description },
{ name: "author", content: siteConfig.siteMeta.author },
],
link: [
diff --git a/app/pages/tags/[tag].vue b/app/pages/tags/[tag].vue
index 4ebc101..d9ac054 100644
--- a/app/pages/tags/[tag].vue
+++ b/app/pages/tags/[tag].vue
@@ -29,7 +29,7 @@ const formattedData = computed(() => {
path: articles.path,
title: articles.title || "no-title available",
description: articles.description || "no-description available",
- image: articles.image || "/blogs-img/blog.jpg",
+ image: articles.image || getRandomFallbackImage(),
alt: articles.alt || "no alter data available",
date: formatDate(articles.date) || "not-date-available",
tags: articles.tags || [],
diff --git a/app/pages/tags/index.vue b/app/pages/tags/index.vue
index 1b8af3f..34ab393 100644
--- a/app/pages/tags/index.vue
+++ b/app/pages/tags/index.vue
@@ -1,6 +1,4 @@