Skip to content

Commit

Permalink
fix: open external tabs in new tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRuf committed Jul 7, 2018
1 parent f4a4f02 commit 25e8e60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions website/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ class Index extends React.Component {
.filter(user => {
return user.pinned;
})
.map(user => {
.map((user, i) => {
return (
<a href={user.infoLink}>
<a href={user.infoLink} key={i} target="_blank" rel="noopener">
<img src={user.image} alt={user.caption} title={user.caption} />
</a>
);
Expand Down
4 changes: 2 additions & 2 deletions website/pages/en/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class Users extends React.Component {
render() {
const showcase = siteConfig.users.map((user, i) => {
return (
<a href={user.infoLink} key={i}>
<img src={user.image} title={user.caption} />
<a href={user.infoLink} key={i} target="_blank" rel="noopener">
<img src={user.image} alt={user.caption} title={user.caption} />
</a>
);
});
Expand Down

0 comments on commit 25e8e60

Please sign in to comment.