mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-09 21:07:55 +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
|
@ -23,14 +23,10 @@ class BlogPost extends React.Component {
|
|||
<div className="read-more">
|
||||
<a
|
||||
className="button"
|
||||
href={
|
||||
this.props.config.baseUrl +
|
||||
'blog/' +
|
||||
utils.getPath(
|
||||
this.props.post.path,
|
||||
this.props.config.cleanUrl
|
||||
)
|
||||
}>
|
||||
href={`${this.props.config.baseUrl}blog/${utils.getPath(
|
||||
this.props.post.path,
|
||||
this.props.config.cleanUrl
|
||||
)}`}>
|
||||
Read More
|
||||
</a>
|
||||
</div>
|
||||
|
@ -43,9 +39,9 @@ class BlogPost extends React.Component {
|
|||
|
||||
renderAuthorPhoto() {
|
||||
const post = this.props.post;
|
||||
const className =
|
||||
'authorPhoto' +
|
||||
(post.author && post.authorTitle ? ' authorPhotoBig' : '');
|
||||
const className = `authorPhoto${
|
||||
post.author && post.authorTitle ? ' authorPhotoBig' : ''
|
||||
}`;
|
||||
if (post.authorFBID || post.authorImageURL) {
|
||||
const authorImageURL = post.authorFBID
|
||||
? `https://graph.facebook.com/${
|
||||
|
@ -68,11 +64,10 @@ class BlogPost extends React.Component {
|
|||
return (
|
||||
<h1 className="postHeaderTitle">
|
||||
<a
|
||||
href={
|
||||
this.props.config.baseUrl +
|
||||
'blog/' +
|
||||
utils.getPath(post.path, this.props.config.cleanUrl)
|
||||
}>
|
||||
href={`${this.props.config.baseUrl}blog/${utils.getPath(
|
||||
post.path,
|
||||
this.props.config.cleanUrl
|
||||
)}`}>
|
||||
{post.title}
|
||||
</a>
|
||||
</h1>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue