Add RSS feed to the layout

This commit is contained in:
Tadej Novak 2025-06-08 11:11:22 +02:00
parent 559f61fa68
commit feb4ad91fd
No known key found for this signature in database

View File

@ -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({