Skip to content

Commit

Permalink
Merge pull request #16 from apvarun/fix-page-filter
Browse files Browse the repository at this point in the history
Fix single page filter
  • Loading branch information
apvarun authored Jul 12, 2021
2 parents 1e07be1 + dffc819 commit 96e72f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
event.target.classList.add("active");
if (type !== "other") {
document
.querySelectorAll(`nav:not(.multipage) .${type}`)
.querySelectorAll(`.${type}`)
.forEach((item) => item.classList.remove("hide"));
} else {
document
Expand All @@ -113,7 +113,7 @@
const showAll = () => {
allTypes.forEach((type) => {
document
.querySelectorAll(`nav:not(.multipage) .${type}`)
.querySelectorAll(`.${type}`)
.forEach((item) => item.classList.remove("hide"));
document
.querySelectorAll(`nav:not(.multipage) .filter-${type}`)
Expand Down

0 comments on commit 96e72f9

Please sign in to comment.