From fbbafa606f12b0ecf3ac89918b424f0ec4a8de4e Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 7 Jul 2023 12:28:40 -0300 Subject: content: listGroupsByName, listing feature flags --- src/page/listing.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/page') 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) { -- cgit 1.3.0-6-gf8a5