Skip to content

Commit

Permalink
fix(route/chinacdc/index): add link for index route (#17999)
Browse files Browse the repository at this point in the history
typo: fix format by autocorrect aumomatically
  • Loading branch information
cscnk52 authored Dec 28, 2024
1 parent a5274c2 commit 75971d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/routes/chinacdc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const handler = async (ctx: Context): Promise<Data> => {
return {
title,
description,
link: item.link,
pubDate: parseDate($$('span.fb em').text()),
content: {
html: description,
Expand Down Expand Up @@ -122,7 +123,7 @@ export const route: Route = {
handler,
example: '/chinacdc/zxyw',
parameters: {
category: '分类,默认为 `zxyw`,即中心要闻,可在对应分类页 URL 中找到, Category, `zxyw`,即中心要闻 by default',
category: '分类,默认为 `zxyw`,即中心要闻,可在对应分类页 URL 中找到Category, `zxyw`,即中心要闻 by default',
},
description: `:::tip
若订阅 [中心要闻](https://www.chinacdc.cn/zxyw/),网址为 \`https://www.chinacdc.cn/zxyw/\`,请截取 \`https://www.chinacdc.cn/\` 到末尾 \`/\` 的部分 \`zxyw\` 作为 \`category\` 参数填入,此时目标路由为 [\`/chinacdc/zxyw\`](https://rsshub.app/chinacdc/zxyw)。
Expand Down Expand Up @@ -169,7 +170,7 @@ export const route: Route = {
#### [全球公卫](https://www.chinacdc.cn/qqgw/)
| [合作伙伴](https://www.chinacdc.cn/qqgw/hzhb/) | [世界卫生组织合作中心和参比实验室](https://www.chinacdc.cn/qqgw/wszz/) | [国际交流(港澳台交流)](https://www.chinacdc.cn/qqgw/gjjl/) | [公共卫生援外与合作](https://www.chinacdc.cn/qqgw/ggws/) |
| [合作伙伴](https://www.chinacdc.cn/qqgw/hzhb/) | [世界卫生组织合作中心和参比实验室](https://www.chinacdc.cn/qqgw/wszz/) | [国际交流 (港澳台交流)](https://www.chinacdc.cn/qqgw/gjjl/) | [公共卫生援外与合作](https://www.chinacdc.cn/qqgw/ggws/) |
| -------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------- | -------------------------------------------------------- |
| [qqgw/hzhb](https://rsshub.app/chinacdc/qqgw/hzhb) | [qqgw/wszz](https://rsshub.app/chinacdc/qqgw/wszz) | [qqgw/gjjl](https://rsshub.app/chinacdc/qqgw/gjjl) | [qqgw/ggws](https://rsshub.app/chinacdc/qqgw/ggws) |
Expand Down Expand Up @@ -371,7 +372,7 @@ export const route: Route = {
target: '/qqgw/wszz',
},
{
title: '全球公卫 - 国际交流(港澳台交流)',
title: '全球公卫 - 国际交流 (港澳台交流)',
source: ['www.chinacdc.cn/qqgw/gjjl/'],
target: '/qqgw/gjjl',
},
Expand Down

0 comments on commit 75971d5

Please sign in to comment.