feat: enhance date formatting in changelog
Build & Push Docker Image / build (push) Has been cancelled

- Added support for Latin digit formatting in release dates to improve readability.
- Updated the ChangelogVersionCard component to ensure proper text direction for dates.
This commit is contained in:
ar.badiei
2026-07-12 02:08:11 +03:30
parent 6cb9e2aac5
commit f0c290786e
5 changed files with 49 additions and 15 deletions
+6 -1
View File
@@ -31,7 +31,12 @@ export async function generateMetadata({
params,
}: BlogPostPageProps): Promise<Metadata> {
const { slug } = await params;
const post = await getPostBySlug(slug);
let post;
try {
post = await getPostBySlug(slug);
} catch {
return { title: "پست یافت نشد" };
}
if (!post) return { title: "پست یافت نشد" };
const titleRaw = post.title?.rendered ?? "پست";
const title = stripHtml(titleRaw);