feat: add RSS in social configuration (#82)

This commit is contained in:
ChrAlpha
2025-08-21 17:53:16 +08:00
committed by GitHub
parent 1f52766c8f
commit 64b467735e
2 changed files with 11 additions and 0 deletions

View File

@@ -84,6 +84,16 @@ export const MasonryHeaderMasonryItem = ({
<i className="i-mingcute-twitter-fill text-sm" />
</a>
)}
{siteConfig.social.rss && (
<a
href="/feed.xml"
target="_blank"
className="text-text-secondary flex items-center justify-center p-2 duration-200 hover:text-[#ec672c]"
title="RSS"
>
<i className="i-mingcute-rss-2-fill text-sm" />
</a>
)}
</div>
)}

View File

@@ -38,6 +38,7 @@ interface Author {
interface Social {
twitter?: string
github?: string
rss?: boolean
}
const defaultConfig: SiteConfig = {