From 556c3491e32576e8ff23117c9f391fcca7769c70 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 14 May 2024 18:59:00 -0700 Subject: [PATCH] fix: links --- package-lock.json | 4 ++-- package.json | 2 +- src/_data/tv.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index bd38f45f..186af229 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "15.0.5", + "version": "15.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "15.0.5", + "version": "15.0.6", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.2.2", diff --git a/package.json b/package.json index 802f77e1..3bcb3837 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "15.0.5", + "version": "15.0.6", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/_data/tv.js b/src/_data/tv.js index f648df95..cbf33f18 100644 --- a/src/_data/tv.js +++ b/src/_data/tv.js @@ -139,7 +139,7 @@ export default async function () { const favoriteShows = shows.filter(show => show['favorite']) const collectedShows = shows.filter(show => show['collected']) - const toWatch = shows.filter(show => !show.episodes.some(episode => episode.last_watched_at)).sort((a, b) => a['title'].localeCompare(b['title'])) + const toWatch = shows.map(show => ({...show, url: `https://www.themoviedb.org/tv/${show['tmdb_id']}`})).filter(show => !show.episodes.some(episode => episode.last_watched_at)).sort((a, b) => a['title'].localeCompare(b['title'])) return { shows,