Skip to content

Commit 4dccdc5

Browse files
fix social media share links
Signed-off-by: Rajesh-Nagarajan-11 <[email protected]>
1 parent c75f39c commit 4dccdc5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/sections/Blog/Blog-single/author.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,28 @@ const AboutTheAuthor = (props) => {
3535
<div className="share-section">
3636
<h3>Share</h3>
3737
<div className="share-icons-container">
38-
<a
39-
aria-label="Share on X"
40-
title="Share on X"
41-
href={`https://x.com/intent/tweet?text=${encodeURIComponent(shareQuote || 'Check out this article!')}&url=${encodeURIComponent(location.href)}&hashtags=layer5&via=layer5`}
38+
<a
39+
aria-label="Share on X"
40+
title="Share on X"
41+
href={`https://x.com/intent/tweet?text=${encodeURIComponent(shareQuote || "Check out this article!")}&url=${encodeURIComponent(location.href)}&hashtags=layer5&via=layer5`}
4242
rel="noopener noreferrer"
4343
className="icon"
4444
>
4545
<AiOutlineTwitter />
4646
</a>
47-
<a
48-
aria-label="Share on Facebook"
49-
title="Share on Facebook"
50-
href={`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(location.href)}&t=${encodeURIComponent(shareQuote || 'Check out this article!')}`}
47+
<a
48+
aria-label="Share on Facebook"
49+
title="Share on Facebook"
50+
href={`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(location.href)}&t=${encodeURIComponent(shareQuote || "Check out this article!")}`}
5151
rel="noopener noreferrer"
5252
className="icon"
5353
>
5454
<FaFacebookF />
5555
</a>
56-
<a
57-
aria-label="Share on Linkedin"
58-
title="Share on Linkedin"
59-
href={`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(location.href)}&summary=${encodeURIComponent(shareQuote || 'Check out this article!')}`}
56+
<a
57+
aria-label="Share on Linkedin"
58+
title="Share on Linkedin"
59+
href={`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(location.href)}&summary=${encodeURIComponent(shareQuote || "Check out this article!")}`}
6060
rel="noopener noreferrer"
6161
className="icon"
6262
>

0 commit comments

Comments
 (0)