From 74b6f943fcadb86f6fd91fcd8394068f0f671860 Mon Sep 17 00:00:00 2001 From: Solomon Victorino Date: Sat, 11 May 2024 23:56:37 -0600 Subject: [PATCH 1/2] fix: handle "?" as an empty song description that's what the API returns --- views/lyrics.templ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/lyrics.templ b/views/lyrics.templ index 6fd35e2..9eecfb4 100644 --- a/views/lyrics.templ +++ b/views/lyrics.templ @@ -23,7 +23,7 @@ templ LyricsPage(s data.Song) { @templ.Raw(s.Lyrics)
- if s.About[0] != "" { + if s.About[0] != "?" {

About

From 54e4a44bf50e4cbe28977c20a75a5102230dcaa9 Mon Sep 17 00:00:00 2001 From: Solomon Victorino Date: Sat, 11 May 2024 23:56:55 -0600 Subject: [PATCH 2/2] fix: hide About for empty album descriptions --- views/album.templ | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/views/album.templ b/views/album.templ index 1e6d9c6..bac1b96 100644 --- a/views/album.templ +++ b/views/album.templ @@ -23,13 +23,15 @@ templ AlbumPage(a data.Album) { }
-
-
-

About

- -

{ a.About[1] }

+ if a.About[0] != "" { +
+
+

About

+ +

{ a.About[1] }

+
-
+ }
} }