Skip to content

Commit 967c2cb

Browse files
committed
hugo: show all guides when filters are unselected
This fixes a bug where if you would first select some filters on the /guides landing page, and then unselect them again, the "All guides" section would still be filtered; not all guides were displayed when filter selection was cleared. Signed-off-by: David Karlsson <[email protected]>
1 parent b9833dd commit 967c2cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

layouts/guides/landing.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ <h1 data-pagefind-weight="10" class="scroll-mt-36">{{ .Title }}</h1>
8383
updateVisible() {
8484
const hiddenSet = new Set();
8585
// show if no filters have been selected
86-
if (this.noFilters()) return;
86+
if (this.noFilters()) {
87+
this.hidden = [];
88+
return;
89+
};
8790
const guideContainer = this.$refs['guide-container'];
8891
const guides = guideContainer.children
8992

0 commit comments

Comments
 (0)