fix(core): add icon and logo back to atom feed (#15132)

icon and logo field are missing from atom feed after it's migrated to
tsx template. This PR adds them back.
This commit is contained in:
Bin Wang 2024-04-06 02:30:36 -04:00 committed by GitHub
parent 615a2a9c3b
commit 54cc62baa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ const RSS: FC<{ data: Data }> = ({ data }) => (
<author>
<name>{data.author || 'RSSHub'}</name>
</author>
{data.icon && <icon>{data.icon}</icon>}
{data.logo && <logo>{data.logo}</logo>}
{data.item?.map((item) => (
<entry>
<title>{item.title}</title>