Use the siteConfig more

The base url should be used instead of hard-coding it.
This commit is contained in:
Shawn Wilsher 2017-07-12 09:53:04 -07:00 committed by GitHub
parent e3139eea2f
commit d0e1eaeb38

View file

@ -44,7 +44,7 @@ class HomeSplash extends React.Component {
<div className="inner">
<h2 className="projectTitle">
{siteConfig.title}
<small>My Tagline</small>
<small>{siteConfig.tagline}</small>
</h2>
<div className="section promoSection">
<div className="promoRow">
@ -52,14 +52,14 @@ class HomeSplash extends React.Component {
<Button href="#try">Try It Out</Button>
<Button
href={
"/test-site/docs/" + this.props.language + "/doc1.html"
siteConfig.baseUrl + "docs/" + this.props.language + "/doc1.html"
}
>
Example Link
</Button>
<Button
href={
"/test-site/docs/" + this.props.language + "/doc2.html"
siteConfig.baseUrl + "docs/" + this.props.language + "/doc2.html"
}
>
Example Link 2