fix: docusaurus links (#811)

This commit is contained in:
GeopJr 2020-08-17 02:41:33 +03:00 committed by GitHub
parent 58a396be98
commit 075862bf23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -1,19 +1,19 @@
import React from 'react';
function Footer({ siteConfig }) {
const { customFields, organizationName, projectName } = siteConfig;
const { customFields, organizationName } = siteConfig;
return (
<div className="footer">
<div className="legal pure-g">
<div className="pure-u-1 u-sm-1-2">
<p className="legal-license">
This site is built with using Pure v{customFields.pureVersion}<br />
All code on this site is licensed under the <a href={`https://github.com/${organizationName}/${projectName}/blob/master/LICENSE`}>Yahoo BSD License</a> unless otherwise stated.
All code on this site is licensed under the <a href={`https://github.com/${organizationName}/${customFields.repoName}/blob/master/LICENSE`}>Yahoo BSD License</a> unless otherwise stated.
</p>
</div>
<div className="pure-u-1 u-sm-1-2">
<ul className="legal-links">
<li><a href={`https://github.com/${organizationName}/${projectName}/`}>GitHub Project</a></li>
<li><a href={`https://github.com/${organizationName}/${customFields.repoName}/`}>GitHub Project</a></li>
<li><a href="https://hackerone.com/yahoo/">Security Contact Info</a></li>
</ul>
<p className="legal-copyright">

View File

@ -23,5 +23,6 @@ module.exports = {
PURE_DOWNLOAD_SNIPPET,
moduleSizes: moduleSizes(),
pureVersion: version,
repoName: 'pure',
},
};

View File

@ -28,9 +28,9 @@ function Home() {
customFields: {
moduleSizes,
PURE_DOWNLOAD_SNIPPET,
repoName,
},
organizationName,
projectName,
} = siteConfig;
const renderSize = renderModuleSize(moduleSizes);
return (
@ -47,7 +47,7 @@ function Home() {
<p>
<Link className="button-cta pure-button" to="/start/">Get Started</Link>
<a className="button-secondary pure-button" href={`https://github.com/${organizationName}/${projectName}/`}>View on GitHub</a>
<a className="button-secondary pure-button" href={`https://github.com/${organizationName}/${repoName}/`}>View on GitHub</a>
</p>
</div>
</div>