Skip to content

Commit

Permalink
Add rel attribute to Card anchor links
Browse files Browse the repository at this point in the history
  • Loading branch information
tjfoerster committed Feb 9, 2024
1 parent 12e1073 commit 2b5ff79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ interface Props {
title: string;
body?: string;
href: string;
rel?: string;
icon?: string;
}
const { href, title, body, icon } = Astro.props;
const { href, title, rel, body, icon } = Astro.props;
---

<li class="link-card">
<a href={href} class="relative overflow-hidden">
<a href={href} rel={rel} class="relative overflow-hidden">
<h2>
{title}
<span>&rarr;</span>
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import BGGIcon from '/BGG.svg?raw';
/>
<Card
href="https://ieji.de/@tjfoe"
rel="me"
title="Mastodon"
icon={MastodonIcon}
/>
Expand Down

0 comments on commit 2b5ff79

Please sign in to comment.