Blog enhancements (#80)

* Small CSS adjustments.

* Blog adjustments.

* Add support for Prism in the blog
This commit is contained in:
Héctor Ramos 2017-09-25 12:53:54 -07:00 committed by GitHub
parent a484893c4f
commit 45f6ef8fd9
7 changed files with 80 additions and 2 deletions

View file

@ -55,6 +55,16 @@ class BlogPost extends React.Component {
</a>
</div>
);
} else if (post.authorImage) {
return (
<div className="authorPhoto">
<a href={post.authorURL} target="_blank">
<img
src={post.authorImage}
/>
</a>
</div>
);
} else {
return null;
}
@ -99,6 +109,8 @@ class BlogPost extends React.Component {
<a href={post.authorURL} target="_blank">
{post.author}
</a>
<br />
{post.authorTitle}
</p>
{this.renderTitle()}
<p className="post-meta">