feat(blog): implement blog structure with post listing, tagging, and layout enhancements (#1962)

* feat(blog): implement blog structure with post listing and tagging functionality

* feat(blog): enhance blog layout and post metadata display with new components

* fix(blog): address PR #1962 review feedback and fix lint issues (#14)

* fix: format

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
JeffJiang
2026-04-10 20:24:52 +08:00
committed by GitHub
parent 809b341350
commit 7dc0c7d01f
16 changed files with 868 additions and 11 deletions
+8
View File
@@ -16,6 +16,14 @@ export function getLocaleByLang(lang: string): Locale {
return DEFAULT_LOCALE;
}
export function getLangByLocale(locale: Locale): string {
const parts = locale.split("-");
if (parts.length > 0 && typeof parts[0] === "string") {
return parts[0];
}
return locale;
}
export function normalizeLocale(locale: string | null | undefined): Locale {
if (!locale) {
return DEFAULT_LOCALE;