From 08ed767a1ae221e79cb53f3da8b703999352ae96 Mon Sep 17 00:00:00 2001 From: hoilc Date: Sun, 8 Mar 2020 01:18:04 +0800 Subject: [PATCH] feat: add matters latest date (#4179) --- lib/routes/matters/latest.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/routes/matters/latest.js b/lib/routes/matters/latest.js index 33c9c29094..0aa771353d 100644 --- a/lib/routes/matters/latest.js +++ b/lib/routes/matters/latest.js @@ -38,6 +38,7 @@ module.exports = async (ctx) => { link, description: article, author: node.author.userName, + pubDate: node.createdAt, }; ctx.cache.set(link, JSON.stringify(single)); @@ -47,6 +48,7 @@ module.exports = async (ctx) => { ctx.state.data = { title: 'Matters | 最新文章', + link: 'https://matters.news/', item: items, }; };