mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-03 20:27:20 +02:00
Remove author name when unused (#131)
This commit is contained in:
parent
fe938cd5b4
commit
e466c60481
1 changed files with 9 additions and 7 deletions
|
@ -103,13 +103,15 @@ class BlogPost extends React.Component {
|
||||||
return (
|
return (
|
||||||
<header className="postHeader">
|
<header className="postHeader">
|
||||||
{this.renderAuthorPhoto()}
|
{this.renderAuthorPhoto()}
|
||||||
<p className="post-authorName">
|
{post.author ? (
|
||||||
<a href={post.authorURL} target="_blank">
|
<p className="post-authorName">
|
||||||
{post.author}
|
<a href={post.authorURL} target="_blank">
|
||||||
</a>
|
{post.author}
|
||||||
<br />
|
</a>
|
||||||
{post.authorTitle}
|
<br />
|
||||||
</p>
|
{post.authorTitle}
|
||||||
|
</p>
|
||||||
|
) : null}
|
||||||
{this.renderTitle()}
|
{this.renderTitle()}
|
||||||
<p className="post-meta">
|
<p className="post-meta">
|
||||||
{month} {day}, {year}
|
{month} {day}, {year}
|
||||||
|
|
Loading…
Add table
Reference in a new issue