Corrected twitter markdown link

This commit is contained in:
Sunit Shirke
2020-10-04 18:05:49 +05:30
committed by GitHub
parent aeca176f40
commit c8102c7f97
+2 -2
View File
@@ -98,11 +98,10 @@ const Markdown = props => {
}
const TwitterBadge = props => {
let link = "https://img.shields.io/twitter/follow/" + props.twitter + "?logo=twitter&style=for-the-badge"
let hLink = "https://twitter.com/" + props.twitter
if (props.show) {
return (
<>
{`<p align="left"> <a href="${hLink}" target="blank"><img src="${link}" alt="${props.twitter}" /></a> </p>`}
{`<p align="left"> <a href="${props.base}/${props.twitter}" target="blank"><img src="${link}" alt="${props.twitter}" /></a> </p>`}
<br />
<br />
</>
@@ -254,6 +253,7 @@ const Markdown = props => {
github={props.social.github}
/>
<TwitterBadge
base="https://twitter.com"
show={props.data.twitterBadge}
twitter={props.social.twitter}
/>