feat: add matters latest date (#4179)

This commit is contained in:
hoilc
2020-03-08 01:18:04 +08:00
committed by GitHub
parent f38dd3cc56
commit 08ed767a1a
+2
View File
@@ -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,
};
};