fix(route): freewechat link (#14397)
This commit is contained in:
parent
bbeefb0962
commit
23dfb6c6f2
|
|
@ -17,11 +17,13 @@ module.exports = async (ctx) => {
|
|||
.slice(0, -1) // last item is a template
|
||||
.map((item) => {
|
||||
item = $(item);
|
||||
const a = item.find('h3 a');
|
||||
return {
|
||||
title: item.find('a').text(),
|
||||
title: a.text().trim(),
|
||||
author,
|
||||
link: `${baseUrl}${item.find('a').attr('href')}`,
|
||||
link: `${baseUrl}${a.attr('href')}`,
|
||||
description: item.find('.preview').text(),
|
||||
category: item.find('.classification').text().trim(),
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue