Skip to content

Commit

Permalink
fix: Make repos open in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Dec 26, 2023
1 parent a956249 commit d194948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/ComponentIndex/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
</div>
<div>
{#if repository.includes('github')}
<a class="repo" title="Go to the source code" href={repository}
<a class="repo" title="Go to the source code" target="_blank" href={repository}
><img style="display:inline" src="/images/github_logo.svg" alt="github logo" /></a
>
{:else if repository.includes('gitlab')}
<a class="repo" title="Go to the source code" href={repository}
<a class="repo" title="Go to the source code" target="_blank" href={repository}
><img style="display:inline" src="/images/gitlab_logo.svg" alt="gitlab logo" /></a
>
<!-- {:else} -->
Expand Down

0 comments on commit d194948

Please sign in to comment.