Merge pull request #20 from facebookexperimental/blog-navigation

Add Recent Posts button at bottom of blog posts
This commit is contained in:
Frank Li 2017-07-17 16:19:04 -07:00 committed by GitHub
commit 9f26e4f305
2 changed files with 19 additions and 0 deletions

View file

@ -40,6 +40,14 @@ class BlogPostLayout extends React.Component {
config={this.props.config}
/>
</div>
<div className="blog-recent">
<a
className="button"
href={this.props.config.baseUrl + "blog"}
>
Recent Posts
</a>
</div>
</Container>
</div>
</Site>

View file

@ -1557,6 +1557,17 @@ table tr th {
overflow: hidden;
width: 70px;
}
.blog-recent {
margin: 20px 0;
}
.blog-recent > a {
float: left;
}
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
.blog-recent {
height: 40px;
}
}
.header-link {
position: absolute;