diff --git a/lib/v2/rsshub/routes.js b/lib/v2/rsshub/routes.js
index a8ec2b72eb..4e1e6389bd 100644
--- a/lib/v2/rsshub/routes.js
+++ b/lib/v2/rsshub/routes.js
@@ -2,7 +2,9 @@ const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
- const lang = ctx.params.lang === 'en' ? 'en/' : '';
+ const isEnglish = ctx.params.lang !== 'zh';
+
+ const lang = isEnglish ? '' : 'zh/';
const types = [
'social-media',
'new-media',
@@ -43,10 +45,10 @@ module.exports = async (ctx) => {
const list = all.flatMap(({ page, item, type }) => item.map((item) => ({ page, item, type })));
ctx.state.data = {
- title: lang === 'en/' ? 'RSSHub has new routes' : 'RSSHub 有新路由啦',
+ title: isEnglish ? 'RSSHub has new routes' : 'RSSHub 有新路由啦',
link: 'https://docs.rsshub.app',
- description: lang === 'en/' ? 'Everything is RSSible' : '万物皆可 RSS',
- language: lang === 'en/' ? 'en-us' : 'zh-cn',
+ description: isEnglish ? 'Everything is RSSible' : '万物皆可 RSS',
+ language: isEnglish ? 'en-us' : 'zh-cn',
item: list.map(({ page, item, type }) => {
const $ = cheerio.load(page);
item = $(item);
diff --git a/website/docs/routes/program-update.md b/website/docs/routes/program-update.md
index 180acc76ff..d28660406a 100644
--- a/website/docs/routes/program-update.md
+++ b/website/docs/routes/program-update.md
@@ -580,7 +580,7 @@ Logseq 开发团队已经放弃了 [旧网站](https://logseq.com/blog)。
### New routes {#rsshub-new-routes}
-
+
### New sponsors {#rsshub-new-sponsors}