« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
Diffstat (limited to 'src/page')
-rw-r--r--src/page/listing.js5
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) {