diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-07-07 12:28:40 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-07-07 12:39:14 -0300 |
commit | fbbafa606f12b0ecf3ac89918b424f0ec4a8de4e (patch) | |
tree | 58b1b4c4adc9ac5e9bbe7d2b85becd61c5dd4d41 /src/page | |
parent | 556eda40caf7f3921507d90afc81073bb74fbd43 (diff) |
content: listGroupsByName, listing feature flags
Diffstat (limited to 'src/page')
-rw-r--r-- | src/page/listing.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/page/listing.js b/src/page/listing.js index c770f825..1db7aa7b 100644 --- a/src/page/listing.js +++ b/src/page/listing.js @@ -17,7 +17,10 @@ export const description = `wiki-wide listing pages & index`; export function targets({wikiData}) { return ( wikiData.listingSpec - .filter(listing => listing.contentFunction)); + .filter(listing => listing.contentFunction) + .filter(listing => + !listing.featureFlag || + wikiData.wikiInfo[listing.featureFlag])); } export function pathsForTarget(listing) { |