From e466c60481d14d57a0e5d4d9fd2ca7dd0fa0fce5 Mon Sep 17 00:00:00 2001 From: Ricky Vetter Date: Wed, 18 Oct 2017 09:52:23 -0700 Subject: [PATCH] Remove author name when unused (#131) --- lib/core/BlogPost.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/core/BlogPost.js b/lib/core/BlogPost.js index aa0dc1a758..7dccd56517 100644 --- a/lib/core/BlogPost.js +++ b/lib/core/BlogPost.js @@ -103,13 +103,15 @@ class BlogPost extends React.Component { return (
{this.renderAuthorPhoto()} -

- - {post.author} - -
- {post.authorTitle} -

+ {post.author ? ( +

+ + {post.author} + +
+ {post.authorTitle} +

+ ) : null} {this.renderTitle()}

{month} {day}, {year}