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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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,
};
};