Skip to content

Commit c8102c7

Browse files
authored
Corrected twitter markdown link
1 parent aeca176 commit c8102c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/markdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,10 @@ const Markdown = props => {
9898
}
9999
const TwitterBadge = props => {
100100
let link = "https://img.shields.io/twitter/follow/" + props.twitter + "?logo=twitter&style=for-the-badge"
101-
let hLink = "https://twitter.com/" + props.twitter
102101
if (props.show) {
103102
return (
104103
<>
105-
{`<p align="left"> <a href="${hLink}" target="blank"><img src="${link}" alt="${props.twitter}" /></a> </p>`}
104+
{`<p align="left"> <a href="${props.base}/${props.twitter}" target="blank"><img src="${link}" alt="${props.twitter}" /></a> </p>`}
106105
<br />
107106
<br />
108107
</>
@@ -254,6 +253,7 @@ const Markdown = props => {
254253
github={props.social.github}
255254
/>
256255
<TwitterBadge
256+
base="https://twitter.com"
257257
show={props.data.twitterBadge}
258258
twitter={props.social.twitter}
259259
/>

0 commit comments

Comments
 (0)