mirror of
https://github.com/anotherhadi/blog.git
synced 2026-04-03 20:02:10 +02:00
Add RSS Feed button
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user