Skip to content

Commit

Permalink
fix(/scu/scupi): optimize the layout (#17653)
Browse files Browse the repository at this point in the history
  • Loading branch information
sitdownkevin authored Nov 21, 2024
1 parent 9d7e28c commit 0179806
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/routes/scu/scupi/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ export async function getArticle(item) {
const $ = load(html);
const articleContentElement = $('body > div > main > section > div > div > div.post-content-contaier > div');
const content = articleContentElement.html();
const modifiedContent = content?.replace(/\n/g, '<br>');

item.description = modifiedContent;
item.description = content;
return item;
} catch {
// console.error(error);
Expand Down
3 changes: 2 additions & 1 deletion lib/routes/scu/scupi/notice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ async function handler() {
title: '四川大学匹兹堡学院',
description: '四川大学匹兹堡学院官网通知',
language: 'zh-cn',
image: 'https://scupi.scu.edu.cn/wp-content/themes/scupi/img/logo.png',
image: 'https://upload.wikimedia.org/wikipedia/zh/4/45/Sichuan_University_logo.svg',
logo: 'https://upload.wikimedia.org/wikipedia/zh/4/45/Sichuan_University_logo.svg',
link: 'https://scupi.scu.edu.cn/',
item: itemsWithContent,
};
Expand Down

0 comments on commit 0179806

Please sign in to comment.