From 19fc6861e567ac8ca56476152edf11d1abb15661 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Thu, 2 Oct 2025 22:09:33 -0700 Subject: frontend: add link to generated RSS feeds --- site/.gitignore | 2 ++ site/src/pages/Homepage.tsx | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/site/.gitignore b/site/.gitignore index a547bf3..9a6d094 100644 --- a/site/.gitignore +++ b/site/.gitignore @@ -22,3 +22,5 @@ dist-ssr *.njsproj *.sln *.sw? +.env*.local +.vercel diff --git a/site/src/pages/Homepage.tsx b/site/src/pages/Homepage.tsx index 74cca3b..2f35280 100644 --- a/site/src/pages/Homepage.tsx +++ b/site/src/pages/Homepage.tsx @@ -14,6 +14,7 @@ export default function Home() { const { gameId } = useParams<{ gameId?: string }>(); const [searchParams] = useSearchParams(); const isMoe = searchParams.has("moe"); + const rssFeedUrl = import.meta.env.VITE_NEWS_BASE_URL + "/" +gameId + "_news.xml"; const newsAPIBase = import.meta.env.VITE_NEWS_BASE_URL const [newsFeedData, setNewsFeedData] = useState( @@ -119,12 +120,24 @@ export default function Home() { {GameNotes(isMoe)[gameId] && (
{GameNotes(isMoe)[gameId]}
)} +
+ + Subscribe via RSS + +
) : (

Welcome to 573-UPDATES

+

+ SECOND STYLE +

+

+ RSS feeds are available on each game's individual page +

Please see the{" "}