diff --git a/.env b/.env index af177d1..18292d0 100644 --- a/.env +++ b/.env @@ -1,2 +1,6 @@ // .env.local +USER_="crapshr6_bb" +HOST="crapshr6.beget.tech" +DATABASE="crapshr6_bb" +PASSWORD="Lo*&9pKQ" \ No newline at end of file diff --git a/src/app/head.tsx b/src/app/head.tsx index 27bcff0..3f62d42 100644 --- a/src/app/head.tsx +++ b/src/app/head.tsx @@ -7,7 +7,7 @@ export default function Head() { - + diff --git a/src/сomponents/podcasts/getRssXml.ts b/src/сomponents/podcasts/getRssXml.ts index 7562e37..fc6a706 100644 --- a/src/сomponents/podcasts/getRssXml.ts +++ b/src/сomponents/podcasts/getRssXml.ts @@ -10,13 +10,23 @@ interface Props { lastBuildDate: string } +const newRess = (title: string) => { + switch(title) { + case "Нравится слушать": return 'https://blogbaster.xyz/api/podcasts/like-to-listen/rss'; + case "Поуехали": return 'https://blogbaster.xyz/api/podcasts/lets-go/rss'; + case "Хобби и ты": return 'https://blogbaster.xyz/api/podcasts/hobbits/rss'; + } + } + export const getRssXml = (data: Props) => { - let item =` - + + `+ newRess(data.title) + +` <![CDATA[`+data.title+`]]> `+data.atom_link+`