fix some minor link bug
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user