diff options
| author | soaos <soaos@soaos.dev> | 2026-04-03 17:20:59 -0400 |
|---|---|---|
| committer | soaos <soaos@soaos.dev> | 2026-04-03 17:20:59 -0400 |
| commit | f28c56ddd35ab468527eda2b116f300732938205 (patch) | |
| tree | 35afd7cfd032650202fbca9eddac66c0939314f1 /templates/shortcodes/album_list.html | |
Initial Commit (Fresh Start)
Diffstat (limited to 'templates/shortcodes/album_list.html')
| -rw-r--r-- | templates/shortcodes/album_list.html | 16 |
1 files changed, 16 insertions, 0 deletions
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 ~ " - <i>" ~ album.name ~ `</i><br> + <img class="album-thumb" src="https://coverartarchive.org/release-group/` ~ album.release_group ~ `/front"/>`, + url="https://musicbrainz.org/release-group/" ~ album.release_group, blank=true) }} +{% endfor %} +{{ macros::endsubtree() }} + +{% endfor %} +{{ macros::endtreeview() }} |