Skip to content

Commit

Permalink
Add target and rel attributes on external links
Browse files Browse the repository at this point in the history
  • Loading branch information
SafdarJamal committed Jan 31, 2022
1 parent 781434a commit 1b08b13
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ const Footer = () => {
<footer className={styles.footer}>
<p>
Created by{' '}
<a href="https://safdarjamal.github.io">
<a
href="https://safdarjamal.github.io"
target="_blank"
rel="noreferrer"
>
{data.site.siteMetadata.author}
</a>{' '}
© 2020-2022
Expand Down
9 changes: 8 additions & 1 deletion src/pages/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ const Contact = () => {
<h1>Contact</h1>
<p>
The best way to reach me is via{' '}
<a href="https://twitter.com/_safdarjamal">@_safdarjamal</a> on Twitter.
<a
href="https://twitter.com/_safdarjamal"
target="_blank"
rel="noreferrer"
>
@_safdarjamal
</a>{' '}
on Twitter.
</p>
</Layout>
);
Expand Down

0 comments on commit 1b08b13

Please sign in to comment.