ESLintify Part 3 (#846)

* ESLintify Part 3

* ESLintify Part 3

* ESLintify Part 3
This commit is contained in:
Yangshun Tay 2018-07-11 03:21:31 -07:00 committed by Endilie Yacop Sucipto
parent 5ac2cee658
commit a7a214fb3a
54 changed files with 435 additions and 497 deletions

View file

@ -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>