A bunch of tiny little fixes for issues I found while setting up docusaurus (#312)

* Do not show users related UI if no users have been specified

* Fixed typo in Docusaurus homepage link

* Allow projects without icons

Not every project has an icon, so avoid showing a broken image in that case.

* Do not show project icon in the footer if there's no footer icon
This commit is contained in:
António Afonso 2017-12-18 09:26:33 -08:00 committed by Joel Marcey
parent e865ed88a0
commit 829508797e
4 changed files with 18 additions and 11 deletions

View file

@ -167,6 +167,9 @@ const Description = props => (
);
const Showcase = props => {
if ((siteConfig.users||[]).length === 0) {
return null;
}
const showcase = siteConfig.users
.filter(user => {
return user.pinned;