Set image width, image url is same with the original web page. (#12518)

This commit is contained in:
wolfg
2023-05-16 10:34:24 +08:00
committed by GitHub
parent f14af5f14e
commit 488cb4bd8e

View File

@@ -48,7 +48,7 @@ module.exports = async (ctx) => {
title: item.document.title, title: item.document.title,
link: `https://${siteDomain}/${item.document.urlString}`, link: `https://${siteDomain}/${item.document.urlString}`,
author: item.document.screenName, author: item.document.screenName,
description: `<img src="${item.document.coverImageUrl}">`, description: `<img src="${item.document.coverImageUrl}?auto=webp&crop=1.2%3A1&frame=1&width=500" width="500">`,
pubDate: new Date(item.document.publishDate).toUTCString(), pubDate: new Date(item.document.publishDate).toUTCString(),
category: item.document.primaryClassification, category: item.document.primaryClassification,
})), })),