mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 17:17:28 +02:00
Allow customizing of blog author image URL documentation (#577)
* Rename authorImage to authorImageURL for clarity Update documentation * Fix typo * Add documentation for authorImageURL * Add support for authorImage We will remove support for authorImage in favor of authorImageURL, after we remove authorImage from react-native-website * Update guides-blog.md * Update guides-blog.md
This commit is contained in:
parent
71b5d46f46
commit
57cddb4d08
2 changed files with 12 additions and 3 deletions
|
@ -64,6 +64,14 @@ class BlogPost extends React.Component {
|
|||
</a>
|
||||
</div>
|
||||
);
|
||||
} else if (post.authorImageURL) {
|
||||
return (
|
||||
<div className={className}>
|
||||
<a href={post.authorURL} target="_blank" rel="noreferrer noopener">
|
||||
<img src={post.authorImageURL} />
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue