fix(route): add description field to /instructables/projects (#12255)

This commit is contained in:
wolfg
2023-04-07 19:58:38 +08:00
committed by GitHub
parent e14eb410f1
commit 801d90d107

View File

@@ -48,6 +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}">`,
pubDate: new Date(item.document.publishDate).toUTCString(), pubDate: new Date(item.document.publishDate).toUTCString(),
category: item.document.primaryClassification, category: item.document.primaryClassification,
})), })),