Remove author name when unused (#131)

This commit is contained in:
Ricky Vetter 2017-10-18 09:52:23 -07:00 committed by Joel Marcey
parent fe938cd5b4
commit e466c60481

View file

@ -103,6 +103,7 @@ class BlogPost extends React.Component {
return ( return (
<header className="postHeader"> <header className="postHeader">
{this.renderAuthorPhoto()} {this.renderAuthorPhoto()}
{post.author ? (
<p className="post-authorName"> <p className="post-authorName">
<a href={post.authorURL} target="_blank"> <a href={post.authorURL} target="_blank">
{post.author} {post.author}
@ -110,6 +111,7 @@ class BlogPost extends React.Component {
<br /> <br />
{post.authorTitle} {post.authorTitle}
</p> </p>
) : null}
{this.renderTitle()} {this.renderTitle()}
<p className="post-meta"> <p className="post-meta">
{month} {day}, {year} {month} {day}, {year}