diff --git a/static/js/filter.js b/static/js/filter.js index 4c5f7a5..933cced 100644 --- a/static/js/filter.js +++ b/static/js/filter.js @@ -23,7 +23,10 @@ function filterSongs() { const searchTerm = sanitizeString(search.value); const songs = Array.from(songList.children); songs.forEach(song => { - const matching = song.dataset.title.includes(searchTerm) && (!selectedCategory || song.dataset.category === selectedCategory); + const matching = ( + (song.dataset.title.includes(searchTerm) || (song.dataset.artist && song.dataset.artist.includes(searchTerm))) && + (!selectedCategory || song.dataset.category === selectedCategory) + ); song.classList.toggle("hidden", !matching); }); } diff --git a/templates/index.html b/templates/index.html index b9ef728..fe81a53 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,7 +21,13 @@
{% for song in section.pages %} -
+
{{ song.title }}
{% if song.taxonomies["artist"] %}