Skip to content

Commit bc9957d

Browse files
authored
fix(route/sspai/index): adapt to sspai morning news new design (#20127)
* fix: adapt to sspai morning news new design * fix: fix variable name
1 parent 8ae3cf6 commit bc9957d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/routes/sspai/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const route: Route = {
2323
},
2424
],
2525
name: '首页',
26-
maintainers: ['HenryQW'],
26+
maintainers: ['HenryQW', 'cscnk52'],
2727
handler,
2828
url: 'sspai.com/index',
2929
};
@@ -49,6 +49,10 @@ async function handler() {
4949
}
5050
description += articleData.body;
5151

52+
if (articleData.body_extends) {
53+
description += articleData.body_extends.map((bodyExtendsItem) => `<h2>${bodyExtendsItem.title}</h2>${bodyExtendsItem.body}`).join('');
54+
}
55+
5256
return {
5357
title: item.title.trim(),
5458
description,

0 commit comments

Comments
 (0)