diff --git a/content/_index.md b/content/_index.md index 1b3cd09..107959c 100644 --- a/content/_index.md +++ b/content/_index.md @@ -35,8 +35,8 @@ document.addEventListener("DOMContentLoaded", () => { // for each recipe hide all but matched recipes.forEach(recipe => { - const recipeName = recipe.textContent.toLowerCase(); - const isMatch = searchTerms.every(term => recipeName.includes(term)); + const searchString = `${recipe.textContent} ${recipe.dataset.tags}`.toLowerCase(); + const isMatch = searchTerms.every(term => searchString.includes(term)); recipe.hidden = !isMatch; recipe.classList.toggle("matched-recipe", hasFilter && isMatch); diff --git a/layouts/shortcodes/artlist.html b/layouts/shortcodes/artlist.html index fa7a62e..d1e3206 100644 --- a/layouts/shortcodes/artlist.html +++ b/layouts/shortcodes/artlist.html @@ -1,5 +1,5 @@