fix zhihu zhuanlan img link, close #80
This commit is contained in:
parent
fc6c3282fb
commit
5e62acee58
|
|
@ -31,13 +31,11 @@ module.exports = async (ctx) => {
|
|||
link: `https://zhuanlan.zhihu.com/${id}`,
|
||||
description: info.description,
|
||||
lastBuildDate: new Date().toUTCString(),
|
||||
item: list.map((item) => {
|
||||
return {
|
||||
title: item.title,
|
||||
description: item.content,
|
||||
pubDate: new Date(item.publishedTime).toUTCString(),
|
||||
link: `https://zhuanlan.zhihu.com${item.url}`
|
||||
};
|
||||
}),
|
||||
item: list.map((item) => ({
|
||||
title: item.title,
|
||||
description: item.content.replace(/<img src="/g, '<img referrerpolicy="no-referrer" src="https://pic4.zhimg.com/'),
|
||||
pubDate: new Date(item.publishedTime).toUTCString(),
|
||||
link: `https://zhuanlan.zhihu.com${item.url}`
|
||||
})),
|
||||
});
|
||||
};
|
||||
Loading…
Reference in New Issue