mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 08:37:25 +02:00
Blog enhancements (#80)
* Small CSS adjustments. * Blog adjustments. * Add support for Prism in the blog
This commit is contained in:
parent
a484893c4f
commit
45f6ef8fd9
7 changed files with 80 additions and 2 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue