Skip to content

Commit

Permalink
don't open new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
azliu0 committed Oct 14, 2024
1 parent a7df960 commit 1e9d923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/Project.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<a
href={project.link}
target="_blank"
target={project.link.includes("azliu.cc") ? "" : "_blank"}
class="w-full p-4 rounded-md z-[100] hover:bg-slate-50 transition-all"
>
<div class="text-xl font-bold mb-4">
Expand All @@ -26,7 +26,7 @@
{#each project.links as link, idx}
<a
href={link.href}
target="_blank"
target={link.href.includes("azliu.cc") ? "" : "_blank"}
class="text-sm text-green-500 hover:text-green-700">{link.title}</a
>
{#if idx < project.links.length - 1}
Expand Down

0 comments on commit 1e9d923

Please sign in to comment.