From 8785c3d23b43908f4d9726bdef50f47032ba77ff Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Fri, 24 Jan 2025 13:56:57 -0800 Subject: [PATCH] feat: reorganize watching section --- eleventy.config.js | 6 +++++ src/pages/books/index.html | 2 +- src/pages/books/tags.html | 2 +- src/pages/games/index.html | 2 +- src/pages/games/tags.html | 2 +- src/pages/watching/index.html | 8 +++--- .../movies.html => movies/favourites.html} | 2 +- src/pages/watching/movies/recent.html | 25 +++++++++++++++++++ src/pages/watching/movies/tag.html | 15 +++++++++++ src/pages/watching/movies/tags.html | 19 ++++++++++++++ src/pages/watching/recent/movies.html | 12 --------- src/pages/watching/recent/shows.html | 12 --------- .../shows.html => shows/favourites.html} | 2 +- src/pages/watching/shows/recent.html | 25 +++++++++++++++++++ src/pages/watching/shows/tag.html | 15 +++++++++++ src/pages/watching/shows/tags.html | 19 ++++++++++++++ 16 files changed, 134 insertions(+), 34 deletions(-) rename src/pages/watching/{favourites/movies.html => movies/favourites.html} (84%) create mode 100644 src/pages/watching/movies/recent.html create mode 100644 src/pages/watching/movies/tag.html create mode 100644 src/pages/watching/movies/tags.html delete mode 100644 src/pages/watching/recent/movies.html delete mode 100644 src/pages/watching/recent/shows.html rename src/pages/watching/{favourites/shows.html => shows/favourites.html} (84%) create mode 100644 src/pages/watching/shows/recent.html create mode 100644 src/pages/watching/shows/tag.html create mode 100644 src/pages/watching/shows/tags.html diff --git a/eleventy.config.js b/eleventy.config.js index ef714b8..4824391 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -44,6 +44,12 @@ export default function (eleventyConfig) { eleventyConfig.addCollection("gamesByTag", (collection) => collectionByTag(collection, "game"), ); + eleventyConfig.addCollection("showsByTag", (collection) => + collectionByTag(collection, "tv"), + ); + eleventyConfig.addCollection("moviesByTag", (collection) => + collectionByTag(collection, "movie"), + ); // --------------------- Custom Filters ----------------------- eleventyConfig.addFilter("allTagCounts", allTagCounts); diff --git a/src/pages/books/index.html b/src/pages/books/index.html index 17ed024..daf37ec 100644 --- a/src/pages/books/index.html +++ b/src/pages/books/index.html @@ -16,7 +16,7 @@ permalink: "books/index.html"
A collection of movies and shows I've seen. I tend to watch more movies than shows these days.
A collection of movies I've seen recently.
+Tagged with "{{ tag }}"
+A collection of movies I've seen recently.
- {{ grid(data) }} -A collection of shows I've seen recently.
- {{ grid(data) }} -A collection of shows I've seen recently.
+Tagged with "{{ tag }}"
+