Add RSS Feed button

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-03-30 18:45:37 +02:00
parent ac552902df
commit a12b3ae671
5 changed files with 21 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
---
import { ArrowRight, Coffee, FolderCode, Key, Newspaper } from "@lucide/astro";
import { Image } from "astro:assets";
import { Rss } from "lucide-astro";
interface Props {
name: string;
@@ -22,9 +23,10 @@ interface Props {
codetips?: string;
};
gpgKey?: string;
rssFeed?: string;
}
const { name, title, description, avatar, location, socialLinks, gpgKey } =
const { name, title, description, avatar, location, socialLinks, gpgKey, rssFeed } =
Astro.props;
---
@@ -316,6 +318,18 @@ const { name, title, description, avatar, location, socialLinks, gpgKey } =
</a>
</div>
)}
{rssFeed && (
<div class="tooltip" data-tip="RSS Feed">
<a
href={rssFeed}
class="btn btn-circle btn-ghost"
aria-label="RSS Feed"
target="_blank"
>
<Rss class="size-6" />
</a>
</div>
)}
</div>
)
}