From b03a014258f2ebcad2c0749699af2db7c00f6202 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 26 Jul 2024 21:01:54 -0700 Subject: [PATCH] fix: genre slugs --- src/data/genres.js | 2 +- src/pages/dynamic/music/artists/artist.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/genres.js b/src/data/genres.js index 481fdfe2..3bd7f40d 100644 --- a/src/data/genres.js +++ b/src/data/genres.js @@ -35,7 +35,7 @@ const fetchGenresWithArtists = async () => { ...artist, country: parseCountryField(artist['country']) })) - genre['url'] = `/music/genres/${slugify(genre['name'].toLowerCase())}` + genre['url'] = `/music/genres/${slugify(genre['name'].replace('/', '-').toLowerCase())}` }) return data diff --git a/src/pages/dynamic/music/artists/artist.html b/src/pages/dynamic/music/artists/artist.html index 2ef7117d..84677a47 100644 --- a/src/pages/dynamic/music/artists/artist.html +++ b/src/pages/dynamic/music/artists/artist.html @@ -49,7 +49,7 @@ schema: artist

{{ artist.total_plays }} plays

{%- endif -%}

- + {{ artist.genres }}