diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-02-16 22:31:36 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-02-16 22:31:36 -0400 |
commit | ebfd6037093b7bb28418b3f56b888df2f95692a3 (patch) | |
tree | b274813359a45b0a2d06d4481176348107bd1330 /src/page/homepage.js | |
parent | b3695dbb8cfdd819a82c6d0eed32b5f94a0c1e51 (diff) |
update old wikiInfo.features.X style accesses
Diffstat (limited to 'src/page/homepage.js')
-rw-r--r-- | src/page/homepage.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/page/homepage.js b/src/page/homepage.js index e60256d..e40392a 100644 --- a/src/page/homepage.js +++ b/src/page/homepage.js @@ -87,7 +87,7 @@ export function writeTargetless({wikiData}) { // And no, I will not make [[news]] into part of transformMultiline // (even though that would 8e hilarious). content: (transformMultiline(homepageInfo.sidebar.replace('[[news]]', '__GENERATE_NEWS__')) - .replace('<p>__GENERATE_NEWS__</p>', wikiInfo.features.news ? fixWS` + .replace('<p>__GENERATE_NEWS__</p>', wikiInfo.enableNews ? fixWS` <h1>${strings('homepage.news.title')}</h1> ${newsData.slice(0, 3).map((entry, i) => html.tag('article', {class: ['news-entry', i === 0 && 'first-news-entry']}, @@ -106,11 +106,11 @@ export function writeTargetless({wikiData}) { <h2 class="dot-between-spans"> ${[ link.home('', {text: wikiInfo.shortName, class: 'current', to}), - wikiInfo.features.listings && + wikiInfo.enableListings && link.listingIndex('', {text: strings('listingIndex.title'), to}), - wikiInfo.features.news && + wikiInfo.enableNews && link.newsIndex('', {text: strings('newsIndex.title'), to}), - wikiInfo.features.flashesAndGames && + wikiInfo.enableFlashesAndGames && link.flashIndex('', {text: strings('flashIndex.title'), to}), ...staticPageData.filter(page => page.listed).map(page => link.staticPage(page, {text: page.shortName})) |