Making GitHub and CC license links open in new window

This commit is contained in:
Jeff Avallone 2018-02-16 17:14:29 -05:00
parent 0d41100e04
commit 8e8fbd3219
4 changed files with 6 additions and 3 deletions

View File

@ -20,7 +20,8 @@ exports[`Footer rendering 1`] = `
Generated images licensed: Generated images licensed:
<a <a
href="http://creativecommons.org/licenses/by/3.0/" href="http://creativecommons.org/licenses/by/3.0/"
rel="license" rel="license external noopener noreferrer"
target="_blank"
> >
<img <img
alt="Creative Commons CC-BY-3.0 License" alt="Creative Commons CC-BY-3.0 License"

View File

@ -11,7 +11,7 @@ const Footer = () => (
</li> </li>
<li> <li>
<Trans i18nKey="Generated images licensed"> <Trans i18nKey="Generated images licensed">
Generated images licensed: <a rel="license" href="http://creativecommons.org/licenses/by/3.0/"> Generated images licensed: <a rel="license external noopener noreferrer" target="_blank" href="http://creativecommons.org/licenses/by/3.0/">
<img <img
alt="Creative Commons CC-BY-3.0 License" alt="Creative Commons CC-BY-3.0 License"
src="https://licensebuttons.net/l/by/3.0/80x15.png" /> src="https://licensebuttons.net/l/by/3.0/80x15.png" />

View File

@ -16,6 +16,8 @@ exports[`Header rendering 1`] = `
<li> <li>
<a <a
href="https://github.com/javallone/regexper-static" href="https://github.com/javallone/regexper-static"
rel="external noopener noreferrer"
target="_blank"
> >
<SvgMock /> <SvgMock />
<Trans> <Trans>

View File

@ -11,7 +11,7 @@ const Header = () => (
</h1> </h1>
<ul> <ul>
<li><a href="https://github.com/javallone/regexper-static"> <li><a href="https://github.com/javallone/regexper-static" rel="external noopener noreferrer" target="_blank">
<GithubIcon/><Trans>Source on GitHub</Trans> <GithubIcon/><Trans>Source on GitHub</Trans>
</a></li> </a></li>
</ul> </ul>