feat: resolve timing with producing follow feed
This commit is contained in:
parent
ca31cd4f0e
commit
c37fc2f1a3
10 changed files with 133 additions and 193 deletions
|
@ -1,26 +0,0 @@
|
|||
export default async function () {
|
||||
const { ActivityFeed } = await import('@11ty/eleventy-activity-feed')
|
||||
const feed = new ActivityFeed()
|
||||
|
||||
feed.addSource('rss', '📝', 'https://coryd.dev/feeds/posts')
|
||||
feed.addSource('rss', '🎥', 'https://coryd.dev/feeds/movies')
|
||||
feed.addSource('rss', '📖', 'https://coryd.dev/feeds/books')
|
||||
feed.addSource('rss', '🔗', 'https://coryd.dev/feeds/links')
|
||||
feed.addSource('rss', '🎧', 'https://coryd.dev/feeds/weekly-artist-chart')
|
||||
|
||||
const entries = feed.getEntries().catch()
|
||||
const res = await entries
|
||||
const activity = { posts: [] }
|
||||
res.forEach((entry) => {
|
||||
activity.posts.push({
|
||||
id: entry.url,
|
||||
title: entry.title,
|
||||
url: entry.url,
|
||||
description: entry.content,
|
||||
content_html: entry.content,
|
||||
date_published: entry.published,
|
||||
})
|
||||
})
|
||||
|
||||
return activity
|
||||
}
|
|
@ -736,29 +736,6 @@
|
|||
"language": "en",
|
||||
"link": "https://books.google.com/books/about/Chasm_City.html?hl=&id=w19z8-u1dl0C"
|
||||
},
|
||||
{
|
||||
"isbn": "9780316462693",
|
||||
"dateAdded": "2024-04-21",
|
||||
"status": "want to read",
|
||||
"rating": "unrated",
|
||||
"tags": [
|
||||
"scifi"
|
||||
],
|
||||
"title": "Pushing Ice",
|
||||
"authors": [
|
||||
"Alastair Reynolds"
|
||||
],
|
||||
"publishedDate": "2020-04-21",
|
||||
"description": "Pushing Ice is the brilliant tale of extraordinary aliens, glittering technologies, and sweeping space opera from award-winning science fiction author Alastair Reynolds. 2057. Humanity has raised exploiting the solar system to an art form. Bella Lind and the crew of her nuclear-powered ship, the Rockhopper, push ice. They mine comets. And they're good at it. The Rockhopper is nearing the end of its current mission cycle, and everyone is desperate for some much-needed R & R, when startling news arrives from Saturn: Janus, one of Saturn's ice moons, has inexplicably left its natural orbit and is now heading out of the solar system at high speed. As layers of camouflage fall away, it becomes clear that Janus was never a moon in the first place. It's some kind of machine -- and it is now headed toward a fuzzily glimpsed artifact 260 light-years away. The Rockhopper is the only ship anywhere near Janus, and Bella Lind is ordered to shadow it for the few vital days before it falls forever out of reach. In accepting this mission, she sets her ship and her crew on a collision course with destiny -- for Janus has more surprises in store, and not all of them are welcome.",
|
||||
"pageCount": 602,
|
||||
"printType": "BOOK",
|
||||
"categories": [
|
||||
"Fiction"
|
||||
],
|
||||
"thumbnail": "https://coryd.dev/media/books/9780316462693-pushing-ice.jpg",
|
||||
"language": "en",
|
||||
"link": "https://play.google.com/store/books/details?id=9oy9DwAAQBAJ"
|
||||
},
|
||||
{
|
||||
"isbn": "9781662602351",
|
||||
"dateAdded": "2024-04-21",
|
||||
|
|
|
@ -65,7 +65,7 @@ export default async function () {
|
|||
const recentlyWatchedMovies = movies.filter(movie => movie['last_watched']).sort((a, b) => new Date(b['last_watched']) - new Date(a['last_watched'])).slice(0, 6)
|
||||
|
||||
return {
|
||||
movies,
|
||||
movies: [...formatMovieData(movies), ...formatMovieData(movies, false)],
|
||||
watchHistory: formatMovieData(movies),
|
||||
recentlyWatched: formatMovieData(recentlyWatchedMovies),
|
||||
favorites: formatMovieData(favoriteMovies).sort((a, b) => a['title'].localeCompare(b['title'])),
|
||||
|
|
Reference in a new issue