feat: add matters latest date (#4179)
This commit is contained in:
parent
f38dd3cc56
commit
08ed767a1a
|
|
@ -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,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue