Skip to content

Commit

Permalink
Merge pull request #446 from Trombach/fix/external-link
Browse files Browse the repository at this point in the history
Fix/external-link
  • Loading branch information
Trombach authored Oct 13, 2024
2 parents 2592727 + 3a8a214 commit 45e5870
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-zoos-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"homepage": patch
---

Fix external link issues
8 changes: 4 additions & 4 deletions src/components/ExternalLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@ const imageProps = {
<span class="whitespace-nowrap">
{position === "before" && (
<>
<img {...imageProps} class="w-4 inline-block my-0 mr-1" />
<a {href} {...props}>
<img {...imageProps} class="w-4 inline-block my-0 mr-1 not-prose" />
<a {href} {...props} class="whitespace-normal">
<Fragment set:html={content} />
</a>
</>
)}
{position === "after" && (
<>
<a {href} {...props}>
<a {href} {...props} class="whitespace-normal">
<Fragment set:html={content} />
</a>
<img {...imageProps} class="w-4 inline-block my-0 ml-1" />
<img {...imageProps} class="w-4 inline-block my-0 ml-1 not-prose" />
</>
)}
</span>
Expand Down

1 comment on commit 45e5870

@vercel
Copy link

@vercel vercel bot commented on 45e5870 Oct 13, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

astro-homepage – ./

astro-homepage-trombachs-projects.vercel.app
astro-homepage-git-main-trombachs-projects.vercel.app

Please sign in to comment.