Skip to content

Commit

Permalink
fix: philosophy category
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomzzz committed Dec 19, 2024
1 parent 802db30 commit 8f869f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vitepress/config/components/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const locales = localesOf<Config>({
root: {
tech: 'Tech',
life: 'Life',
phil: 'Philosophy',
philosophy: 'Philosophy',
roadmap: 'Roadmap',
none: 'No Category'
}
Expand Down
3 changes: 3 additions & 0 deletions .vitepress/theme/components/Archive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion docs/blogs/lw_vc.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
category: phil
category: philosophy
date: 2024-11-17 04:19
tags:
- Thoughts
Expand Down
2 changes: 1 addition & 1 deletion docs/lacon/0-1-intro-truth-is-not-all.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
category: phil
category: philosophy
date: 2024-12-12 01:47
tags:
- 拉康
Expand Down

0 comments on commit 8f869f4

Please sign in to comment.