Skip to content

Commit

Permalink
fix(route): remove title from description (#17395)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL authored Oct 31, 2024
1 parent b8c7278 commit c8496f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/routes/enterprisecraftsmanship/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ async function handler() {
const $detail = load(detailResponse.data);

// 获取 .post 内容,但排除 .post-info
const $post = $detail('.post');
$post.find('.post-info').remove();
item.description = $post.html();
item.description = ($detail('.post > .paragraph').html() ?? '') + ($detail('.post >.sect1').html() ?? '');

return item;
} catch (error) {
Expand Down

0 comments on commit c8496f3

Please sign in to comment.