Add rss feed with latest 10 artworks

This commit is contained in:
2026-01-31 11:46:21 +01:00
parent 84dc219a14
commit 5a3e567ed5
3 changed files with 101 additions and 4 deletions

View File

@ -3,12 +3,20 @@ import {
siLinktree,
siMastodon,
siPaypal,
siRss,
siTelegram,
siTwitch,
type SimpleIcon,
} from "simple-icons";
type SocialKey = "paypal" | "telegram" | "mastodon" | "bluesky" | "linktree" | "twitch";
type SocialKey =
| "paypal"
| "telegram"
| "mastodon"
| "bluesky"
| "linktree"
| "twitch"
| "rss";
const SOCIALS: Record<
SocialKey,
@ -43,7 +51,12 @@ const SOCIALS: Record<
label: "Twitch",
icon: siTwitch,
href: "https://www.twitch.tv/gaertan_art",
}
},
rss: {
label: "RSS",
icon: siRss,
href: "/rss.xml",
},
};
function BrandSvg({ icon }: { icon: SimpleIcon }) {
@ -60,7 +73,15 @@ function BrandSvg({ icon }: { icon: SimpleIcon }) {
}
export function SocialLinks({
items = ["paypal", "telegram", "mastodon", "bluesky", "linktree", "twitch"],
items = [
"paypal",
"telegram",
"mastodon",
"bluesky",
"linktree",
"twitch",
"rss",
],
size = "md",
}: {
items?: SocialKey[];
@ -99,4 +120,4 @@ export function SocialLinks({
})}
</div>
);
}
}