mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-14 17:47:40 +02:00
Add config option for setting title of the blog sidebar (#770)
* Allow controlling the title of the blog sidebar * Update guides-blog.md
This commit is contained in:
parent
62a2c7c1a5
commit
58fba70dea
4 changed files with 19 additions and 3 deletions
|
@ -97,6 +97,7 @@ class BlogPostLayout extends React.Component {
|
|||
render() {
|
||||
let post = this.props.metadata;
|
||||
post.path = utils.getPath(post.path, this.props.config.cleanUrl);
|
||||
let blogSidebarTitleConfig = this.props.config.blogSidebarTitle || {};
|
||||
return (
|
||||
<Site
|
||||
className="sideNavVisible"
|
||||
|
@ -124,7 +125,7 @@ class BlogPostLayout extends React.Component {
|
|||
</div>
|
||||
<div className="blog-recent">
|
||||
<a className="button" href={this.props.config.baseUrl + 'blog'}>
|
||||
Recent Posts
|
||||
{blogSidebarTitleConfig.default || 'Recent Posts'}
|
||||
</a>
|
||||
</div>
|
||||
</Container>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue