This commit is contained in:
juancmandev 2025-03-13 23:49:20 -06:00
parent d2e63d427b
commit 4893b9c06a

View File

@ -11,7 +11,11 @@ export default function PostItem(props: TPostItem) {
> >
<a <a
className='no-underline' className='no-underline'
href={`/${props.lang === 'es' ? 'es' : ''}/${props.type}/${props.id}`} href={
props.lang === 'en'
? `/${props.type}/${props.id}`
: `/es/${props.type}/${[props.id]}`
}
> >
<span className='text-foreground text-sm font-light no-underline'> <span className='text-foreground text-sm font-light no-underline'>
{formatDate(props.date, props.lang)} {formatDate(props.date, props.lang)}