From 9d5227e54dc0520beacf0265e5fde48988dcacf7 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 1 Jul 2024 15:15:45 -0700 Subject: [PATCH] fix: only show genre blurb if there's data --- package-lock.json | 4 ++-- package.json | 2 +- src/pages/main/music/genre.html | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index bdad8d2f..6255a450 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "19.8.3", + "version": "19.8.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "19.8.3", + "version": "19.8.4", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", diff --git a/package.json b/package.json index 804a993f..beb8ddd2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "19.8.3", + "version": "19.8.4", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/pages/main/music/genre.html b/src/pages/main/music/genre.html index 8a925159..a2559211 100644 --- a/src/pages/main/music/genre.html +++ b/src/pages/main/music/genre.html @@ -24,8 +24,10 @@ schema: genre {% tablericon "arrow-left" "Go back to the music index page" %} Back to music
+ {%- if genre.total_plays > 0 -%}

My top {{ genre.name }} artists {{ connectingWord }} {{ genre.artists | sortByPlaysDescending: "total_plays" | mediaLinks: "artist", 5 }}. I've listened to {{ genre.total_plays | formatNumber }} tracks form this genre.


+ {% endif %} {%- if genre.description -%}
{{ genre.description | markdown }}