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:
Fatpandac
2023-04-08 07:28:08 -05:00
committed by GitHub
parent 83523842cd
commit 03f9a18146
+3 -2
View File
@@ -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 = {