mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-15 01:57:28 +02:00
ESLintify Part 3 (#846)
* ESLintify Part 3 * ESLintify Part 3 * ESLintify Part 3
This commit is contained in:
parent
5ac2cee658
commit
a7a214fb3a
54 changed files with 435 additions and 497 deletions
|
@ -38,12 +38,8 @@ class BlogPostLayout extends React.Component {
|
|||
{/* Facebook SDK require 'fb-comments' class */}
|
||||
<div
|
||||
className="fb-comments"
|
||||
data-href={
|
||||
this.props.config.url +
|
||||
this.props.config.baseUrl +
|
||||
'blog/' +
|
||||
post.path
|
||||
}
|
||||
data-href={`${this.props.config.url +
|
||||
this.props.config.baseUrl}blog/${post.path}`}
|
||||
data-width="100%"
|
||||
data-numposts="5"
|
||||
data-order-by="time"
|
||||
|
@ -56,12 +52,8 @@ class BlogPostLayout extends React.Component {
|
|||
{/* Facebook SDK require 'fb-like' class */}
|
||||
<div
|
||||
className="fb-like"
|
||||
data-href={
|
||||
this.props.config.url +
|
||||
this.props.config.baseUrl +
|
||||
'blog/' +
|
||||
post.path
|
||||
}
|
||||
data-href={`${this.props.config.url +
|
||||
this.props.config.baseUrl}blog/${post.path}`}
|
||||
data-layout="standard"
|
||||
data-share="true"
|
||||
data-width="225"
|
||||
|
@ -76,12 +68,9 @@ class BlogPostLayout extends React.Component {
|
|||
href="https://twitter.com/share"
|
||||
className="twitter-share-button"
|
||||
data-text={post.title}
|
||||
data-url={
|
||||
this.props.config.url +
|
||||
this.props.config.baseUrl +
|
||||
'blog/' +
|
||||
data-url={`${this.props.config.url + this.props.config.baseUrl}blog/${
|
||||
post.path
|
||||
}
|
||||
}`}
|
||||
data-related={this.props.config.twitter}
|
||||
data-via={post.authorTwitter}
|
||||
data-show-count="false">
|
||||
|
@ -109,7 +98,7 @@ class BlogPostLayout extends React.Component {
|
|||
className={classNames('sideNavVisible', {
|
||||
separateOnPageNav: hasOnPageNav,
|
||||
})}
|
||||
url={'blog/' + post.path}
|
||||
url={`blog/${post.path}`}
|
||||
title={this.props.metadata.title}
|
||||
language="en"
|
||||
description={this.getDescription()}
|
||||
|
@ -132,7 +121,7 @@ class BlogPostLayout extends React.Component {
|
|||
{this.renderSocialButtons()}
|
||||
</div>
|
||||
<div className="blog-recent">
|
||||
<a className="button" href={this.props.config.baseUrl + 'blog'}>
|
||||
<a className="button" href={`${this.props.config.baseUrl}blog`}>
|
||||
{blogSidebarTitleConfig.default || 'Recent Posts'}
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue