feat(blog): add tagId and categoryId for multilingual routing support
- Add tagId and categoryId fields to blog post frontmatter and interfaces - Update blog list, category, and tag pages to use IDs for routing - Implement fallback to regular tags/categories when IDs are not available - Improve tag and category links with hover effects and proper encoding - Update post meta component to support multilingual routing
This commit is contained in:
@@ -4,7 +4,10 @@ description: "探索 React Hooks 在函数组件中管理状态和副作用的
|
||||
image: "https://images.unsplash.com/photo-1633356122544-f134324a6cee?w=400&h=250&fit=crop&crop=center"
|
||||
date: "2025年5月10日"
|
||||
readTime: "5分钟阅读"
|
||||
tags: ["React", "JavaScript", "前端"]
|
||||
tags: ["React", "JavaScript", "前端开发"]
|
||||
tagId: ["react", "javascript", "frontend"]
|
||||
category: ["React", "前端"]
|
||||
categoryId: ["react", "frontend"]
|
||||
slug: "mastering-react-hooks"
|
||||
layout: "../../../../layouts/BlogPostLayout.astro"
|
||||
---
|
||||
|
||||
@@ -4,7 +4,7 @@ description: "掌握 TypeScript 在企业级应用中的高级技巧,提升代
|
||||
image: "https://images.unsplash.com/photo-1516116216624-53e697fedbea?w=400&h=250&fit=crop&crop=center"
|
||||
date: "2025年4月15日"
|
||||
readTime: "8分钟阅读"
|
||||
tags: ["TypeScript", "架构", "最佳实践"]
|
||||
tags: ["TypeScript", "JavaScript", "Architecture"]
|
||||
slug: "typescript-best-practices"
|
||||
layout: "../../../../layouts/BlogPostLayout.astro"
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user