mirror of
https://github.com/pure-css/pure.git
synced 2024-11-24 10:44:21 +00:00
fix: docusaurus links (#811)
This commit is contained in:
parent
58a396be98
commit
075862bf23
@ -1,19 +1,19 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
function Footer({ siteConfig }) {
|
function Footer({ siteConfig }) {
|
||||||
const { customFields, organizationName, projectName } = siteConfig;
|
const { customFields, organizationName } = siteConfig;
|
||||||
return (
|
return (
|
||||||
<div className="footer">
|
<div className="footer">
|
||||||
<div className="legal pure-g">
|
<div className="legal pure-g">
|
||||||
<div className="pure-u-1 u-sm-1-2">
|
<div className="pure-u-1 u-sm-1-2">
|
||||||
<p className="legal-license">
|
<p className="legal-license">
|
||||||
This site is built with ❤️ using Pure v{customFields.pureVersion}<br />
|
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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="pure-u-1 u-sm-1-2">
|
<div className="pure-u-1 u-sm-1-2">
|
||||||
<ul className="legal-links">
|
<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>
|
<li><a href="https://hackerone.com/yahoo/">Security Contact Info</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p className="legal-copyright">
|
<p className="legal-copyright">
|
||||||
|
@ -23,5 +23,6 @@ module.exports = {
|
|||||||
PURE_DOWNLOAD_SNIPPET,
|
PURE_DOWNLOAD_SNIPPET,
|
||||||
moduleSizes: moduleSizes(),
|
moduleSizes: moduleSizes(),
|
||||||
pureVersion: version,
|
pureVersion: version,
|
||||||
|
repoName: 'pure',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -28,9 +28,9 @@ function Home() {
|
|||||||
customFields: {
|
customFields: {
|
||||||
moduleSizes,
|
moduleSizes,
|
||||||
PURE_DOWNLOAD_SNIPPET,
|
PURE_DOWNLOAD_SNIPPET,
|
||||||
|
repoName,
|
||||||
},
|
},
|
||||||
organizationName,
|
organizationName,
|
||||||
projectName,
|
|
||||||
} = siteConfig;
|
} = siteConfig;
|
||||||
const renderSize = renderModuleSize(moduleSizes);
|
const renderSize = renderModuleSize(moduleSizes);
|
||||||
return (
|
return (
|
||||||
@ -47,7 +47,7 @@ function Home() {
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
<Link className="button-cta pure-button" to="/start/">Get Started</Link>
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user