Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target on Network Links #1

Open
agustingrigoriu opened this issue May 17, 2018 · 0 comments
Open

Target on Network Links #1

agustingrigoriu opened this issue May 17, 2018 · 0 comments

Comments

@agustingrigoriu
Copy link

I did some changes on the resumeData.json and the Headers.js in order to set the target property.

On JSON:

     {
        "name":"instagram",
        "url":"http://instagram.com",
        "className":"fa fa-instagram",
        "target" : "_blank"
      }

and on the Header.js:

var networks = this.props.data.social.map(function (network) {
        var target = ( network && network.target ) || "_self";
        return <li key={network.name}><a href={network.url} target={target}><i className={network.className}></i></a></li>
      });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant