mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-27 15:07:53 +02:00
Fix GitHub Button (#201)
This commit is contained in:
parent
1ba37f857c
commit
fbcbaa52d3
1 changed files with 10 additions and 15 deletions
|
@ -7,20 +7,6 @@
|
||||||
|
|
||||||
const React = require("react");
|
const React = require("react");
|
||||||
|
|
||||||
const githubButton = (
|
|
||||||
<a
|
|
||||||
className="github-button"
|
|
||||||
href={this.props.config.repoUrl}
|
|
||||||
data-icon="octicon-star"
|
|
||||||
data-count-href="/deltice/test-site/stargazers"
|
|
||||||
data-show-count={true}
|
|
||||||
data-count-aria-label="# stargazers on GitHub"
|
|
||||||
aria-label="Star this project on GitHub"
|
|
||||||
>
|
|
||||||
Star
|
|
||||||
</a>
|
|
||||||
);
|
|
||||||
|
|
||||||
class Footer extends React.Component {
|
class Footer extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
const currentYear = new Date().getFullYear();
|
const currentYear = new Date().getFullYear();
|
||||||
|
@ -92,7 +78,16 @@ class Footer extends React.Component {
|
||||||
<h5>More</h5>
|
<h5>More</h5>
|
||||||
<a href={this.props.config.baseUrl + "blog"}>Blog</a>
|
<a href={this.props.config.baseUrl + "blog"}>Blog</a>
|
||||||
<a href="https://github.com/">GitHub</a>
|
<a href="https://github.com/">GitHub</a>
|
||||||
{githubButton}
|
<a className="github-button"
|
||||||
|
href={this.props.config.repoUrl}
|
||||||
|
data-icon="octicon-star"
|
||||||
|
data-count-href="/deltice/test-site/stargazers"
|
||||||
|
data-show-count={true}
|
||||||
|
data-count-aria-label="# stargazers on GitHub"
|
||||||
|
aria-label="Star this project on GitHub"
|
||||||
|
>
|
||||||
|
Star
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue