diff --git a/scripts/blog.js b/scripts/blog.js index f4e6038..49b55eb 100644 --- a/scripts/blog.js +++ b/scripts/blog.js @@ -22,10 +22,10 @@ function populateBlog(json, cat) { list.html(""); cats.html(""); - addCatButton(json, cats, "All"); + addCatButton(json, cats, "All", cat); for (let i = json.length - 1; i >= 0; i--) { let obj = json[i]; - addCatButton(json, cats, obj.cat); + addCatButton(json, cats, obj.cat, cat); if (cat === "All" || obj.cat === cat) { let p = /*html*/ `