Skip to content

Commit

Permalink
Add support for authorImage
Browse files Browse the repository at this point in the history
We will remove support for `authorImage` in favor of `authorImageURL` after removing it from react-native-website
  • Loading branch information
amyrlam committed Apr 18, 2018
1 parent 538f2d8 commit 162316a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/core/BlogPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ class BlogPost extends React.Component {
</a>
</div>
);
} else if (post.authorImage) {
return (
<div className={className}>
<a href={post.authorURL} target="_blank" rel="noreferrer noopener">
<img src={post.authorImage} />
</a>
</div>
);
} else if (post.authorImageURL) {
return (
<div className={className}>
Expand Down

0 comments on commit 162316a

Please sign in to comment.