fix(route): show all content of tittle on description (#12259)
* fix(route): show all content of tittle on description * fix(route): pubDate is invalid
This commit is contained in:
@@ -13,9 +13,10 @@ module.exports = async (ctx) => {
|
||||
const items = $('div.mb-4')
|
||||
.toArray()
|
||||
.map((item) => ({
|
||||
title: $(item).text(),
|
||||
title: $(item).find('a').text(),
|
||||
description: $(item).find('a').text(),
|
||||
link: $(item).find('a').attr('href'),
|
||||
pubDate: parseDate($(item).find('i.text-helper-color.mr-4').text()),
|
||||
pubDate: parseDate($(item).find('i.text-helper-color.mr-4').text().trim()),
|
||||
}));
|
||||
|
||||
ctx.state.data = {
|
||||
|
||||
Reference in New Issue
Block a user