Skip to content

Commit 35ca809

Browse files
committed
Add rss link
1 parent a1b26f3 commit 35ca809

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Diff for: pages/updates/index.tsx

+11-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Description, OtherMeta, Title } from '../../components/Meta';
44
import { Layout } from '../../components/Page/Layout';
55
import { getPostByFilename } from '../../lib/api';
66
import markdownToHtml from '../../utils/markdownToHtml';
7+
import { RssIcon } from '@heroicons/react/24/solid';
78

89
export default function Home({ content }: any) {
910
const { t: strings } = useTranslation();
@@ -17,7 +18,15 @@ export default function Home({ content }: any) {
1718
<Layout>
1819
<div className="max-w-7xl mx-auto py-8 px-4 sm:px-6 lg:px-8 xl:px-0 divide-y-2 divide-vulcan-200">
1920
<div className="pb-8 space-y-2 md:space-y-5 ">
20-
<h1 className="text-5xl tracking-tight font-extrabold sm:leading-none lg:text-5xl xl:text-6xl">{strings(`changelog_page_title`) as string}</h1>
21+
<div className='flex justify-between items-center'>
22+
<h1 className="text-5xl tracking-tight font-extrabold sm:leading-none lg:text-5xl xl:text-6xl">{strings(`changelog_page_title`) as string}</h1>
23+
24+
<a href="/api/rss" className="text-whisper-700 hover:text-whisper-900 inline-flex items-center space-x-2">
25+
<span>Changelog RSS Feed</span>
26+
27+
<RssIcon className="h-5 w-5 text-whisper-500" />
28+
</a>
29+
</div>
2130

2231
<p className="mt-3 text-base text-whisper-700 sm:mt-5 sm:text-xl lg:text-lg xl:text-xl">{strings(`changelog_page_description`) as string}</p>
2332
</div>
@@ -39,7 +48,7 @@ export default function Home({ content }: any) {
3948
<div dangerouslySetInnerHTML={{ __html: content || "" }}></div>
4049
</div>
4150
</div>
42-
</Layout>
51+
</Layout >
4352
</>
4453
)
4554
}

0 commit comments

Comments
 (0)