Skip to content

Commit baa4cdf

Browse files
Update page.tsx
1 parent 94a3109 commit baa4cdf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/blogs/[slug]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ const PostLayout = ({ params }: { params: { slug: string } }) => {
2626
</time>
2727
<h1 className="text-white font-SpaceGrotesk font-bold text-3xl md:text-6xl ">{post.title}</h1>
2828
</div>
29-
<div className="font-SpaceGrotesk text-white text-left py-5 opacity-70 text-md [&>*]:mb-3 [&>*:last-child]:mb-0" dangerouslySetInnerHTML={{ __html: post.body.html }} />
29+
<div className="font-SpaceGrotesk text-white text-left py-5 opacity-70 text-md [&>*]:mb-3 [&>*:last-child]:mb-0" dangerouslySetInnerHTML={{ __html: post.body.html.replace(/<a/g, '<a style="color: #00ADEE;"'), }} />
3030
</main>
3131
<Footer></Footer>
3232
</>
3333
)
3434
}
3535

36-
export default PostLayout
36+
export default PostLayout

0 commit comments

Comments
 (0)