Skip to content

Commit

Permalink
CLDR-17803 site: hide sibling pages
Browse files Browse the repository at this point in the history
only show subpages of an index page, not siblings
  • Loading branch information
srl295 committed Sep 6, 2024
1 parent 25795ce commit 41024f2
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 41024f2

Please sign in to comment.