Fix ternary if
This commit is contained in:
parent
b4447f0e38
commit
d2e63d427b
@ -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
|
||||
|
@ -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)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user