mirror of
https://github.com/pure-css/pure.git
synced 2024-11-07 21:34:24 +00:00
fix: docusaurus links (#811)
This commit is contained in:
parent
58a396be98
commit
075862bf23
@ -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">
|
||||
|
@ -23,5 +23,6 @@ module.exports = {
|
||||
PURE_DOWNLOAD_SNIPPET,
|
||||
moduleSizes: moduleSizes(),
|
||||
pureVersion: version,
|
||||
repoName: 'pure',
|
||||
},
|
||||
};
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user