feat: enhance date formatting in changelog
Build & Push Docker Image / build (push) Has been cancelled
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:
@@ -28,7 +28,7 @@ export function BlogPostCard({
|
||||
|
||||
if (variant === "related") {
|
||||
return (
|
||||
<Link href={`/blog/${encodeURIComponent(post.slug)}`} className="block h-full min-w-0">
|
||||
<Link href={`/blog/${post.slug}`} className="block h-full min-w-0">
|
||||
<Card className="h-full overflow-hidden transition-all rounded-md duration-300 hover:shadow-md flex flex-col p-0 gap-0">
|
||||
<CardContent className="p-3 sm:p-4 grid grid-cols-3 gap-3 sm:gap-4 min-w-0">
|
||||
{thumbnailUrl ? (
|
||||
@@ -76,7 +76,7 @@ export function BlogPostCard({
|
||||
|
||||
if (variant === "tiny") {
|
||||
return (
|
||||
<Link href={`/blog/${encodeURIComponent(post.slug)}`} className="block h-full">
|
||||
<Link href={`/blog/${post.slug}`} className="block h-full">
|
||||
<Card className="h-full overflow-hidden transition-all rounded-md duration-300 hover:shadow-md flex flex-col p-2">
|
||||
<CardContent className="p-2 grid grid-cols-3 gap-4">
|
||||
{thumbnailUrl ? (
|
||||
@@ -123,7 +123,7 @@ export function BlogPostCard({
|
||||
}
|
||||
|
||||
return (
|
||||
<Link href={`/blog/${encodeURIComponent(post.slug)}`} className="block h-full">
|
||||
<Link href={`/blog/${post.slug}`} className="block h-full">
|
||||
<Card className="h-full overflow-hidden transition-all duration-300 hover:-translate-y-1 hover:shadow-lg pt-0 gap-1">
|
||||
{thumbnailUrl ? (
|
||||
<div className="relative aspect-video w-full overflow-hidden bg-muted">
|
||||
|
||||
@@ -27,7 +27,7 @@ function PostCard({
|
||||
const date = post.date ? formatDateShamsi(post.date) : null;
|
||||
const authorName = post._embedded?.author?.[0]?.name ?? null;
|
||||
const thumbnailUrl = getFeaturedImageUrl(post, size === "large" ? "medium_large" : "medium");
|
||||
const href = `/blog/${encodeURIComponent(post.slug)}`;
|
||||
const href = `/blog/${post.slug}`;
|
||||
|
||||
return (
|
||||
<Link
|
||||
@@ -81,7 +81,7 @@ function PostCardRow({ post }: { post: WpPost }) {
|
||||
const date = post.date ? formatDateShamsi(post.date) : null;
|
||||
const authorName = post._embedded?.author?.[0]?.name ?? null;
|
||||
const thumbnailUrl = getFeaturedImageUrl(post, "medium");
|
||||
const href = `/blog/${encodeURIComponent(post.slug)}`;
|
||||
const href = `/blog/${post.slug}`;
|
||||
|
||||
return (
|
||||
<Link
|
||||
|
||||
Reference in New Issue
Block a user