From feb4ad91fd754090cfb4d9c55c8547d7d488f14d Mon Sep 17 00:00:00 2001 From: Tadej Novak Date: Sun, 8 Jun 2025 11:11:22 +0200 Subject: [PATCH] Add RSS feed to the layout --- app/layout.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/layout.tsx b/app/layout.tsx index b1202329..dc8a19ae 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -10,6 +10,7 @@ import { META_TITLE, HTML_LANG, NAV_CAPTION, + PUBLIC_FEED_ENABLED, } from '@/app/config'; import AppStateProvider from '@/state/AppStateProvider'; import ToasterWithThemes from '@/toast/ToasterWithThemes'; @@ -65,6 +66,13 @@ export const metadata: Metadata = { type: 'image/png', sizes: '180x180', }], + ...PUBLIC_FEED_ENABLED && { + alternates: { + types: { + 'application/rss+xml': '/rss.xml', + }, + }, + }, }; export default function RootLayout({