This commit is contained in:
		@@ -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);
 | 
			
		||||
	});
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,13 @@
 | 
			
		||||
		</section>
 | 
			
		||||
		<section class="song-list">
 | 
			
		||||
			{% for song in section.pages %}
 | 
			
		||||
				<div class="{{ macros::primary_category(song=song) }}" data-title="{{ song.title }}" data-category="{{ macros::primary_category(song=song) }}">
 | 
			
		||||
				<div class="{{ macros::primary_category(song=song) }}"
 | 
			
		||||
					data-title="{{ song.title }}"
 | 
			
		||||
					data-category="{{ macros::primary_category(song=song) }}"
 | 
			
		||||
					{% if song.taxonomies["artist"] %}
 | 
			
		||||
						data-artist="{{ song.taxonomies["artist"][0] }}"
 | 
			
		||||
					{% endif %}
 | 
			
		||||
				>
 | 
			
		||||
					<div class="meta">
 | 
			
		||||
						<div class="title">{{ song.title }}</div>
 | 
			
		||||
						{% if song.taxonomies["artist"] %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user