mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-19 01:28:38 +02:00
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:
parent
e865ed88a0
commit
829508797e
4 changed files with 18 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue