Fix ternary if

This commit is contained in:
juancmandev 2025-03-13 23:03:30 -06:00
parent b4447f0e38
commit d2e63d427b
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ export default function Footer({ lang }: Props) {
</section>
<section className='w-max mx-auto flex items-center gap-12'>
<VerticalLinkButton
href={`https://juancman.dev/${lang === 'es' && lang}feed.xml`}
href={`https://juancman.dev/${lang === 'es' ? 'es' : ''}feed.xml`}
>
<RssIcon className='w-6' />
RSS feed

View File

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