From c2b918a3c649f4fd270cf508d87811729b700839 Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Mon, 27 Jan 2025 20:59:11 -0800 Subject: [PATCH] fix: layout of catalogue type pages --- src/pages/books/favourites.html | 5 +---- src/pages/books/recent.html | 13 +++++++++++++ src/pages/books/tag.html | 2 +- src/pages/games/index.html | 2 +- src/pages/games/recent.html | 15 ++++++++++++++- src/pages/watching/movies/tag.html | 2 +- src/pages/watching/shows/tag.html | 2 +- 7 files changed, 32 insertions(+), 9 deletions(-) diff --git a/src/pages/books/favourites.html b/src/pages/books/favourites.html index b4e9418..6245ab5 100644 --- a/src/pages/books/favourites.html +++ b/src/pages/books/favourites.html @@ -5,11 +5,8 @@ permalink: "books/favourites/index.html" {% from "macros/media-grid.njk" import grid %} {% set data = collections.book | filterFavourites | reverse %} - - {% include "svgs/arrow-left.svg" %} -Back to books
-

Favourite book

+

Favourite books

A collection of my favourite books!

{{ grid(data) }}
diff --git a/src/pages/books/recent.html b/src/pages/books/recent.html index d3ed8a3..630cf2b 100644 --- a/src/pages/books/recent.html +++ b/src/pages/books/recent.html @@ -5,8 +5,21 @@ permalink: "books/recent/index.html" {% from "macros/media-grid.njk" import grid %} {% set data = collections.book | reverse %} +{% set tags = collections.book | allTagCounts(["book"]) | limit(5) %}

Recent books

A collection of books I've read.

+

+ Tags +

+ {{ grid(data) }}
diff --git a/src/pages/books/tag.html b/src/pages/books/tag.html index 1223230..7a8309b 100644 --- a/src/pages/books/tag.html +++ b/src/pages/books/tag.html @@ -7,7 +7,7 @@ permalink: "books/tag/{{ tag | slugify }}/index.html" --- {% from "macros/media-grid.njk" import grid %} -{% set data = collections.booksByTag[tag] %} +{% set data = collections.booksByTag[tag] | reverse %}

Books

Tagged with "{{ tag }}"

diff --git a/src/pages/games/index.html b/src/pages/games/index.html index 8ae7c7a..c0751d3 100644 --- a/src/pages/games/index.html +++ b/src/pages/games/index.html @@ -25,7 +25,7 @@ permalink: "games/index.html" {% endfor %}

- Latest games + Recent games

{{ grid(data) }}

diff --git a/src/pages/games/recent.html b/src/pages/games/recent.html index bd3cda1..d9c5a0a 100644 --- a/src/pages/games/recent.html +++ b/src/pages/games/recent.html @@ -5,8 +5,21 @@ permalink: "games/recent/index.html" {% from "macros/media-grid.njk" import grid %} {% set data = collections.game | reverse %} +{% set tags = collections.game | allTagCounts(["game"]) | limit(5) %}
-

Latest games

+

Recent games

A collection of games I've played.

+

+ Tags +

+ {{ grid(data) }}
diff --git a/src/pages/watching/movies/tag.html b/src/pages/watching/movies/tag.html index a492a9a..d5146bb 100644 --- a/src/pages/watching/movies/tag.html +++ b/src/pages/watching/movies/tag.html @@ -7,7 +7,7 @@ permalink: "watching/movies/tag/{{ tag | slugify }}/index.html" --- {% from "macros/media-grid.njk" import grid %} -{% set data = collections.moviesByTag[tag] %} +{% set data = collections.moviesByTag[tag] | reverse %}

Movies

Tagged with "{{ tag }}"

diff --git a/src/pages/watching/shows/tag.html b/src/pages/watching/shows/tag.html index e7150cc..854f660 100644 --- a/src/pages/watching/shows/tag.html +++ b/src/pages/watching/shows/tag.html @@ -7,7 +7,7 @@ permalink: "watching/shows/tag/{{ tag | slugify }}/index.html" --- {% from "macros/media-grid.njk" import grid %} -{% set data = collections.showsByTag[tag] %} +{% set data = collections.showsByTag[tag] | reverse %}

Shows

Tagged with "{{ tag }}"