mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-27 15:07:53 +02:00
Add Recent Posts button at bottom of blog posts
This commit is contained in:
parent
523d824651
commit
c6bdc81376
2 changed files with 19 additions and 0 deletions
|
@ -40,6 +40,14 @@ class BlogPostLayout extends React.Component {
|
||||||
config={this.props.config}
|
config={this.props.config}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="blog-recent-bar">
|
||||||
|
<a
|
||||||
|
className="blog-recent button"
|
||||||
|
href={this.props.config.baseUrl + "blog"}
|
||||||
|
>
|
||||||
|
Recent Posts
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</div>
|
</div>
|
||||||
</Site>
|
</Site>
|
||||||
|
|
|
@ -1554,6 +1554,17 @@ table tr th {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 70px;
|
width: 70px;
|
||||||
}
|
}
|
||||||
|
.blog-recent-bar {
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
.blog-recent {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
|
||||||
|
.blog-recent-bar {
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.header-link {
|
.header-link {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue