From f28c56ddd35ab468527eda2b116f300732938205 Mon Sep 17 00:00:00 2001 From: soaos Date: Fri, 3 Apr 2026 17:20:59 -0400 Subject: Initial Commit (Fresh Start) --- templates/shortcodes/album_list.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 templates/shortcodes/album_list.html (limited to 'templates/shortcodes/album_list.html') diff --git a/templates/shortcodes/album_list.html b/templates/shortcodes/album_list.html new file mode 100644 index 0000000..74439ca --- /dev/null +++ b/templates/shortcodes/album_list.html @@ -0,0 +1,16 @@ +{% import "macros.html" as macros %} +{% set data = load_data(path="data/albums.json") %} + +{{ macros::treeview(height="32rem") }} +{% for genre, albums in data.albums | group_by(attribute="genre") %} + +{{ macros::subtree(name=genre, open=false) }} +{% for album in albums %} + {{ macros::treelink(text=album.artist ~ " - " ~ album.name ~ `
+ `, + url="https://musicbrainz.org/release-group/" ~ album.release_group, blank=true) }} +{% endfor %} +{{ macros::endsubtree() }} + +{% endfor %} +{{ macros::endtreeview() }} -- cgit v1.3-2-g0d8e