fix some minor link bug

This commit is contained in:
sanjidaRimi023
2026-05-06 19:43:33 +06:00
parent f368d98760
commit 6f74ae9da8
5 changed files with 32 additions and 29 deletions
+8 -8
View File
@@ -205,9 +205,9 @@ export default function BlogArticle() {
<li className="text-muted-foreground">{children}</li>
),
a: ({ href, children }) => (
<a href={href} className="text-primary hover:underline">
<Link to={href} className="text-primary hover:underline">
{children}
</a>
</Link>
),
strong: ({ children }) => (
<strong className="font-bold text-foreground">
@@ -337,24 +337,24 @@ export default function BlogArticle() {
<p className="text-muted-foreground mb-4">{post.author.bio}</p>
<div className="flex gap-3 justify-center md:justify-start">
{post.author.twitter && (
<a
href={`https://twitter.com/${post.author.twitter}`}
<Link
to={`https://twitter.com/${post.author.twitter}`}
target="_blank"
rel="noopener noreferrer"
className="p-2 rounded-full glass hover:neon-glow transition-all"
>
<Twitter className="w-5 h-5" />
</a>
</Link>
)}
{post.author.linkedin && (
<a
href={`https://linkedin.com/in/${post.author.linkedin}`}
<Link
to={`https://linkedin.com/in/${post.author.linkedin}`}
target="_blank"
rel="noopener noreferrer"
className="p-2 rounded-full glass hover:neon-glow transition-all"
>
<Linkedin className="w-5 h-5" />
</a>
</Link>
)}
</div>
</div>