feat: update descriptions
This commit is contained in:
parent
9586a2a735
commit
59e19001e6
|
|
@ -36,7 +36,7 @@ const expects = {
|
|||
`<a href="https://mock.com/DIYgod/RSSHub"></a>
|
||||
<img src="https://mock.com/DIYgod/RSSHub.jpg" referrerpolicy="no-referrer">`,
|
||||
],
|
||||
desc: '<img src="http://mock.com/DIYgod/DIYgod/RSSHub"> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
|
||||
desc: '<img src="http://mock.com/DIYgod/DIYgod/RSSHub"> - Powered by RSSHub',
|
||||
},
|
||||
processed: {
|
||||
items: [
|
||||
|
|
@ -54,7 +54,7 @@ const expects = {
|
|||
`<a href="https://mock.com/DIYgod/RSSHub"></a>
|
||||
<img src="https://i3.wp.com/mock.com/DIYgod/RSSHub.jpg" referrerpolicy="no-referrer">`,
|
||||
],
|
||||
desc: '<img src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
|
||||
desc: '<img src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"> - Powered by RSSHub',
|
||||
},
|
||||
urlencoded: {
|
||||
items: [
|
||||
|
|
@ -72,7 +72,7 @@ const expects = {
|
|||
`<a href="https://mock.com/DIYgod/RSSHub"></a>
|
||||
<img src="https://images.weserv.nl?url=https%3A%2F%2Fmock.com%2FDIYgod%2FRSSHub.jpg" referrerpolicy="no-referrer">`,
|
||||
],
|
||||
desc: '<img src="https://images.weserv.nl?url=http%3A%2F%2Fmock.com%2FDIYgod%2FDIYgod%2FRSSHub"> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
|
||||
desc: '<img src="https://images.weserv.nl?url=http%3A%2F%2Fmock.com%2FDIYgod%2FDIYgod%2FRSSHub"> - Powered by RSSHub',
|
||||
},
|
||||
},
|
||||
multimedia: {
|
||||
|
|
@ -87,7 +87,7 @@ const expects = {
|
|||
<audio src="https://mock.com/DIYgod/RSSHub.mp3"></audio>
|
||||
<iframe src="https://mock.com/DIYgod/RSSHub.html" referrerpolicy="no-referrer"></iframe>`,
|
||||
],
|
||||
desc: '<video src="http://mock.com/DIYgod/DIYgod/RSSHub"></video> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
|
||||
desc: '<video src="http://mock.com/DIYgod/DIYgod/RSSHub"></video> - Powered by RSSHub',
|
||||
},
|
||||
relayed: {
|
||||
items: [
|
||||
|
|
@ -100,7 +100,7 @@ const expects = {
|
|||
<audio src="https://i3.wp.com/mock.com/DIYgod/RSSHub.mp3"></audio>
|
||||
<iframe src="https://mock.com/DIYgod/RSSHub.html" referrerpolicy="no-referrer"></iframe>`,
|
||||
],
|
||||
desc: '<video src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"></video> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
|
||||
desc: '<video src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"></video> - Powered by RSSHub',
|
||||
},
|
||||
partlyRelayed: {
|
||||
items: [
|
||||
|
|
@ -113,7 +113,7 @@ const expects = {
|
|||
<audio src="https://i3.wp.com/mock.com/DIYgod/RSSHub.mp3"></audio>
|
||||
<iframe src="https://mock.com/DIYgod/RSSHub.html" referrerpolicy="no-referrer"></iframe>`,
|
||||
],
|
||||
desc: '<video src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"></video> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
|
||||
desc: '<video src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"></video> - Powered by RSSHub',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ const RSS: FC<{ data: Data }> = ({ data }) => (
|
|||
<title>{data.title || 'RSSHub'}</title>
|
||||
<link href={data.link || 'https://docs.rsshub.app'} />
|
||||
<id>{data.id || data.link}</id>
|
||||
<subtitle>{data.description || data.title} - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)</subtitle>
|
||||
<subtitle>{data.description || data.title} - Powered by RSSHub</subtitle>
|
||||
<generator>RSSHub</generator>
|
||||
<webMaster>i@diygod.me (DIYgod)</webMaster>
|
||||
<webMaster>contact@rsshub.app (RSSHub)</webMaster>
|
||||
<language>{data.language || 'en'}</language>
|
||||
<updated>{data.lastBuildDate}</updated>
|
||||
<author>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ const json = (data: Data) => {
|
|||
title: data.title || 'RSSHub',
|
||||
home_page_url: data.link || 'https://docs.rsshub.app',
|
||||
feed_url: data.feedLink,
|
||||
description: `${data.description || data.title} - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)`,
|
||||
description: `${data.description || data.title} - Powered by RSSHub`,
|
||||
icon: data.image,
|
||||
authors: typeof data.author === 'string' ? [{ name: data.author }] : data.author,
|
||||
language: data.language || 'zh-cn',
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ const RSS: FC<{ data: Data }> = ({ data }) => {
|
|||
<title>{data.title || 'RSSHub'}</title>
|
||||
<link>{data.link || 'https://docs.rsshub.app'}</link>
|
||||
<atom:link href={data.atomlink} rel="self" type="application/rss+xml" />
|
||||
<description>{data.description || data.title} - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)</description>
|
||||
<description>{data.description || data.title} - Powered by RSSHub</description>
|
||||
<generator>RSSHub</generator>
|
||||
<webMaster>i@diygod.me (DIYgod)</webMaster>
|
||||
<webMaster>contact@rsshub.app (RSSHub)</webMaster>
|
||||
{data.itunes_author && <itunes:author>{data.itunes_author}</itunes:author>}
|
||||
{data.itunes_category && <itunes:category text={data.itunes_category} />}
|
||||
{data.itunes_author && <itunes:explicit>{data.itunes_explicit || 'false'}</itunes:explicit>}
|
||||
|
|
|
|||
Loading…
Reference in New Issue