mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-15 01:57:28 +02:00
ESLintify Part 2 (#841)
* ESLintify Part 2 * Fix * Fix tests * Fix tests * Fix tests
This commit is contained in:
parent
4267337fb0
commit
5ac2cee658
42 changed files with 188 additions and 190 deletions
|
@ -103,7 +103,7 @@ class BlogPostLayout extends React.Component {
|
|||
const hasOnPageNav = this.props.config.onPageNav === 'separate';
|
||||
const post = this.props.metadata;
|
||||
post.path = utils.getPath(post.path, this.props.config.cleanUrl);
|
||||
let blogSidebarTitleConfig = this.props.config.blogSidebarTitle || {};
|
||||
const blogSidebarTitleConfig = this.props.config.blogSidebarTitle || {};
|
||||
return (
|
||||
<Site
|
||||
className={classNames('sideNavVisible', {
|
||||
|
@ -111,13 +111,13 @@ class BlogPostLayout extends React.Component {
|
|||
})}
|
||||
url={'blog/' + post.path}
|
||||
title={this.props.metadata.title}
|
||||
language={'en'}
|
||||
language="en"
|
||||
description={this.getDescription()}
|
||||
config={this.props.config}
|
||||
metadata={{blog: true}}>
|
||||
<div className="docMainWrapper wrapper">
|
||||
<BlogSidebar
|
||||
language={'en'}
|
||||
language="en"
|
||||
current={post}
|
||||
config={this.props.config}
|
||||
/>
|
||||
|
@ -126,7 +126,7 @@ class BlogPostLayout extends React.Component {
|
|||
<BlogPost
|
||||
post={post}
|
||||
content={this.props.children}
|
||||
language={'en'}
|
||||
language="en"
|
||||
config={this.props.config}
|
||||
/>
|
||||
{this.renderSocialButtons()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue