mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 23:08:54 +02:00
Merge pull request #20 from facebookexperimental/blog-navigation
Add Recent Posts button at bottom of blog posts
This commit is contained in:
commit
9f26e4f305
2 changed files with 19 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue