laosiji:修复标题为空问题 (#889)
* 增加:有品-每日上新 * 修复 summary 字段错误 * 将 youpin 模块转移至 mi 目录下,并更新文档 * hotfix: 修复标题为空问题 标题为空时取描述作为标题
This commit is contained in:
parent
f133520977
commit
b43855666c
|
|
@ -12,10 +12,10 @@ module.exports = async (ctx) => {
|
|||
title: '老司机-24小时热门',
|
||||
link: 'http://www.laosiji.com/new_web/index.html',
|
||||
description: '老司机-24小时热门',
|
||||
item: data.map(({ title, id, imageInfo, createtime }) => ({
|
||||
title,
|
||||
item: data.map(({ title, description, id, imageInfo, createtime }) => ({
|
||||
title: title === '' ? description : title,
|
||||
link: `http://www.laosiji.com/thread/${id}.html`,
|
||||
description: `<img referrerpolicy="no-referrer" src="${imageInfo.url}">`,
|
||||
description: `<img referrerpolicy="no-referrer" src="${imageInfo.url}">${description}`,
|
||||
pubDate: new Date(createtime).toUTCString(),
|
||||
})),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue