From 30855b84a0eee772bb2cd83a04d6669df2a8a282 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 8 Jul 2023 20:11:14 -0700 Subject: [PATCH] fix: link data --- src/_data/links.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_data/links.js b/src/_data/links.js index 0ecfd9fb..a1a81a97 100644 --- a/src/_data/links.js +++ b/src/_data/links.js @@ -9,12 +9,12 @@ module.exports = async function () { type: 'json', fetchOptions: { headers }, }) - const feed = await res - const links = feed.feed.splice(0, 5).map(link => { + const favorites = await res + return favorites.feed.splice(0, 5).map(link => { return { title: link.content.title, - url: link.content.url + url: link.content.url, + time: link.content['publication_date'] } }) - return links }