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:
@@ -23,7 +23,9 @@ const {
|
||||
publishDate,
|
||||
date,
|
||||
tags,
|
||||
tagId,
|
||||
category,
|
||||
categoryId,
|
||||
readTime,
|
||||
} = frontmatter;
|
||||
|
||||
@@ -85,7 +87,9 @@ const finalReadingTime = readTime ? parseInt(readTime.replace(/\D/g, '')) : unde
|
||||
publishDate={finalPublishDate}
|
||||
readingTime={finalReadingTime}
|
||||
tags={tags}
|
||||
tagId={tagId}
|
||||
category={category}
|
||||
categoryId={categoryId}
|
||||
className="justify-start"
|
||||
/>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user