From 51a4561f88a6e42fece3a9ae0bc33dae9df9516e Mon Sep 17 00:00:00 2001 From: Machillka Date: Thu, 3 Sep 2026 19:55:45 +0800 Subject: [PATCH] feat: update category and recent posts titles for consistency, improve empty state styling in tag index --- .vitepress/theme/components/CategoryCards.vue | 3 +-- .vitepress/theme/components/RecentPosts.vue | 5 ++--- .vitepress/theme/components/TagIndex.vue | 11 +++++++++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.vitepress/theme/components/CategoryCards.vue b/.vitepress/theme/components/CategoryCards.vue index 7ed7589..b6339d7 100644 --- a/.vitepress/theme/components/CategoryCards.vue +++ b/.vitepress/theme/components/CategoryCards.vue @@ -10,8 +10,7 @@ import { data as categories } from "../category.data";

- KNOWLEDGE_AREAS - 知识分类 + CATEGORIES

diff --git a/.vitepress/theme/components/RecentPosts.vue b/.vitepress/theme/components/RecentPosts.vue index c2d979c..96abded 100644 --- a/.vitepress/theme/components/RecentPosts.vue +++ b/.vitepress/theme/components/RecentPosts.vue @@ -20,8 +20,7 @@ const formatDateTime = (timestamp: number) => {

- RECENT_UPDATES - 最近更新 + UPDATES

@@ -120,7 +119,7 @@ html.dark { color: var(--y-accent); margin: 0; display: flex; - align-items: center; + align-items: baseline; gap: 12px; } diff --git a/.vitepress/theme/components/TagIndex.vue b/.vitepress/theme/components/TagIndex.vue index 1211c2b..8ee9c53 100644 --- a/.vitepress/theme/components/TagIndex.vue +++ b/.vitepress/theme/components/TagIndex.vue @@ -23,7 +23,6 @@ const filteredTags = computed(() => {

TAG_INDEX //

标签索引

-

从一个方向出发,找到散落在不同目录中的相关笔记。

@@ -70,7 +69,7 @@ const filteredTags = computed(() => {
-

没有找到匹配的标签。

+

没有找到匹配的标签

@@ -296,6 +295,10 @@ const filteredTags = computed(() => { } .empty-state { + display: flex; + flex-direction: column; + align-items: center; + gap: 16px; padding: 48px 24px; border: 1px dashed var(--vp-c-divider); border-radius: 8px; @@ -303,6 +306,10 @@ const filteredTags = computed(() => { text-align: center; } +.empty-state p { + margin: 0; +} + .empty-state button { padding: 8px 14px; border: 1px solid var(--vp-c-brand-1);