From 8f869f4dc5d261480ea721f98d7b7bbf877d3273 Mon Sep 17 00:00:00 2001 From: Glomzzz Date: Fri, 20 Dec 2024 02:02:51 +0800 Subject: [PATCH] fix: philosophy category --- .vitepress/config/components/categories.ts | 2 +- .vitepress/theme/components/Archive.vue | 3 +++ docs/blogs/lw_vc.md | 2 +- docs/lacon/0-1-intro-truth-is-not-all.md | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.vitepress/config/components/categories.ts b/.vitepress/config/components/categories.ts index 0df2d0a..1ec5c0d 100644 --- a/.vitepress/config/components/categories.ts +++ b/.vitepress/config/components/categories.ts @@ -11,7 +11,7 @@ export const locales = localesOf({ root: { tech: 'Tech', life: 'Life', - phil: 'Philosophy', + philosophy: 'Philosophy', roadmap: 'Roadmap', none: 'No Category' } diff --git a/.vitepress/theme/components/Archive.vue b/.vitepress/theme/components/Archive.vue index b4d2df0..ea2f1a1 100644 --- a/.vitepress/theme/components/Archive.vue +++ b/.vitepress/theme/components/Archive.vue @@ -160,6 +160,9 @@ function initTimeline() { archiveData[year].mouths.push({month, articles: archiveData[year][month]}) } article.categoryDisplay = categoryLocales[lang.value][article.category] ?? categoryLocales[lang.value]['none']; + console.log(categories) + console.log(article.category) + console.log(categories[article.category]) article.categoryIcon = categories[article.category].icon ?? categories['none'].icon; archiveData[year].mouths.sort((a, b) => b.month - a.month); archiveData[year][month].push(article); diff --git a/docs/blogs/lw_vc.md b/docs/blogs/lw_vc.md index c150924..fac9801 100644 --- a/docs/blogs/lw_vc.md +++ b/docs/blogs/lw_vc.md @@ -1,5 +1,5 @@ --- -category: phil +category: philosophy date: 2024-11-17 04:19 tags: - Thoughts diff --git a/docs/lacon/0-1-intro-truth-is-not-all.md b/docs/lacon/0-1-intro-truth-is-not-all.md index 3fcb012..9fb5d81 100644 --- a/docs/lacon/0-1-intro-truth-is-not-all.md +++ b/docs/lacon/0-1-intro-truth-is-not-all.md @@ -1,5 +1,5 @@ --- -category: phil +category: philosophy date: 2024-12-12 01:47 tags: - 拉康