From 5d70e99ac2b15630a436bf9d36772b2e0c9c19d3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 3 Mar 2021 12:48:12 -0400 Subject: only show homepage nav links for enabled features --- upd8.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/upd8.js b/upd8.js index e8befa6a..8f40c45e 100755 --- a/upd8.js +++ b/upd8.js @@ -2377,11 +2377,14 @@ function writeHomepage() {

${[ strings.link.home('', {text: wikiInfo.shortName, class: 'current', to}), + wikiInfo.features.listings && strings.link.listingIndex('', {text: strings('listingIndex.title'), to}), + wikiInfo.features.news && strings.link.newsIndex('', {text: strings('newsIndex.title'), to}), + wikiInfo.features.flashesAndGames && strings.link.flashIndex('', {text: strings('flashIndex.title'), to}), ...staticPageData.filter(page => page.listed).map(page => strings.link.staticPage(page, {to})) - ].map(link => `${link}`).join('\n')} + ].filter(Boolean).map(link => `${link}`).join('\n')}

` } -- cgit 1.3.0-6-gf8a5