Skip to content

Commit

Permalink
Fixing GitHub component 'null' values'
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelgoth committed May 1, 2023
1 parent 1affbe1 commit c51b325
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/lib/components/extra/github.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@
</a>
</div>
<p class="prose">
{info.description}
<br />
<!-- FIXME: Do not display when there is no homepage -->
<a rel="noopener noreferrer external" target="_blank" href={info.homepage}>{info.homepage}</a>
{#if info.description}
{info.description}
<br />
{/if}
{#if info.homepage}
<a rel="noopener noreferrer external" target="_blank" href={info.homepage}>{info.homepage}</a>
{/if}
</p>
</div>
<img class="w-20 h-20 mt-0 ml-auto mb-auto rounded-xl flex-initial" alt="owner_avatar" src={info.owner.avatar_url} />
Expand Down

1 comment on commit c51b325

@vercel
Copy link

@vercel vercel bot commented on c51b325 May 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.