Skip to content

Commit 6903c8e

Browse files
style: fix linting errors in author links
1 parent fd66e32 commit 6903c8e

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

pages/blog/posts/[slug].page.tsx

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -78,38 +78,38 @@ export default function StaticMarkdownPage({
7878
key={index}
7979
className='flex flex-row items-center mb-3 w-full'
8080
>
81-
<div
82-
className='bg-slate-50 h-[44px] w-[44px] rounded-full bg-cover bg-center'
83-
style={{ backgroundImage: `url(${author.photo})` }}
84-
/>
85-
<div className='flex flex-col pl-2'>
86-
<div className='text-sm font-semibold'>
87-
{author.name}
88-
</div>
89-
<div className='flex gap-2 text-xs'>
90-
{author.twitter && (
91-
<a
92-
className='text-blue-500 hover:underline'
93-
href={`https://x.com/${author.twitter}`}
94-
target="_blank"
95-
rel="noopener noreferrer"
96-
>
97-
Twitter
98-
</a>
99-
)}
100-
{author.linkedin && (
101-
<a
102-
className='text-blue-700 hover:underline'
103-
href={author.linkedin}
104-
target="_blank"
105-
rel="noopener noreferrer"
106-
>
107-
LinkedIn
108-
</a>
109-
)}
110-
</div>
81+
<div
82+
className='bg-slate-50 h-[44px] w-[44px] rounded-full bg-cover bg-center'
83+
style={{ backgroundImage: `url(${author.photo})` }}
84+
/>
85+
<div className='flex flex-col pl-2'>
86+
<div className='text-sm font-semibold'>
87+
{author.name}
88+
</div>
89+
<div className='flex gap-2 text-xs'>
90+
{author.twitter && (
91+
<a
92+
className='text-blue-500 hover:underline'
93+
href={`https://x.com/${author.twitter}`}
94+
target='_blank'
95+
rel='noopener noreferrer'
96+
>
97+
Twitter
98+
</a>
99+
)}
100+
{author.linkedin && (
101+
<a
102+
className='text-blue-700 hover:underline'
103+
href={author.linkedin}
104+
target='_blank'
105+
rel='noopener noreferrer'
106+
>
107+
LinkedIn
108+
</a>
109+
)}
111110
</div>
112111
</div>
112+
</div>
113113
);
114114
},
115115
)}

0 commit comments

Comments
 (0)