@@ -4,20 +4,31 @@ import { Image } from "astro:assets";
44import BlogAuthor from " ./BlogAuthor.astro" ;
55import ChevronRightIcon from " ./icons/ChevronRightIcon.astro" ;
66import DiscordIcon from " ./icons/DiscordIcon.astro" ;
7+ import RssIcon from " ./icons/RssIcon.astro" ;
78import GrainLogo from " ./icons/GrainLogo.astro" ;
89
910interface Props {
1011 entry: CollectionEntry <" blog" >;
1112}
1213
1314const { entry } = Astro .props ;
15+
16+ const rssLink = Astro .site ! .toString ().replace (/ \/ $ / , " " ) + " /blog/rss.xml" ;
1417---
1518
1619<div class =" mx-auto max-w-[70rem] pb-5 lg:pb-28 px-4" >
1720 <div class =" my-6 md:my-10 flex justify-between items-center" >
1821 <div >
1922 <GrainLogo class =" w-8 h-8 md:w-12 md:h-12 inline-block align-middle fill-color-accent" />
2023 <span class =" md:pl-1 text-2xl md:text-4xl font-semibold align-middle" >The Grain Blog</span >
24+ <a
25+ href ={ rssLink }
26+ target =" _blank"
27+ aria-label =" RSS feed link"
28+ class =" hidden md:inline-block ml-2 align-middle"
29+ >
30+ <RssIcon class =" w-10 h-10 fill-color-accent" />
31+ </a >
2132 </div >
2233 <div class =" flex md:hidden gap-4 text-color-accent items-center" >
2334 <a
@@ -34,6 +45,13 @@ const { entry } = Astro.props;
3445 >
3546 <DiscordIcon class =" w-7 h-7 fill-color-accent" />
3647 </a >
48+ <a
49+ href ={ rssLink }
50+ target =" _blank"
51+ aria-label =" RSS feed link"
52+ >
53+ <RssIcon class =" w-7 h-7 fill-color-accent" />
54+ </a >
3755 </div >
3856 <div class =" hidden md:block text-color-accent" >
3957 Also find us on
0 commit comments