Skip to content

Commit

Permalink
CLDR-17803 site: hide sibling pages (#4026)
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 authored and conradarcturus committed Sep 25, 2024
1 parent 99463dd commit a7d331d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/site/assets/js/cldrsite.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,13 @@ const app = Vue.createApp(
if (dirPages) {
// our page is an index -so, show the subpages instead of the siblings.
dirForPage = dirPages[0]; // the adjusted index
}
}
let thePages = this.tree?.value?.allDirs[dirForPage].pages ?? [];
} else {
return []; // no sibling pages;
}
} else {
return []; // no sibling pages
}
let thePages = this.tree?.value?.allDirs[dirForPage].pages ?? [];
if (dirForPage === "") {
thePages = [...thePages, ...this.tree?.value?.allDirs["index"].pages];
}
Expand Down

0 comments on commit a7d331d

Please sign in to comment.