Skip to content

Commit

Permalink
feat(route): Add category to stheadline. (#13200)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Sep 4, 2023
1 parent 38e4f1a commit 5cef317
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/v2/stheadline/std/realtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = async (ctx) => {

item.description = $('.paragraphs').html();
item.pubDate = timezone(parseDate($('.content .date').text()), +8);
item.category = [$('nav .nav-item.active a')?.text()?.trim(), ...$("meta[name='keyword']").attr('content').split(',')];

return item;
})
Expand Down

0 comments on commit 5cef317

Please sign in to comment.