diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-01-02 10:55:38 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-01-02 10:55:38 -0400 |
commit | 2db6ae3236fba513e33a2f594dcc1aa405881f02 (patch) | |
tree | 816513d6583ee2bf06caf6545dff49bf31dc157e | |
parent | e589765bb4967aeb97885892d4af4c79422e30e5 (diff) |
quick kinda hack to show short names in nav bar
-rw-r--r-- | src/page/homepage.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/page/homepage.js b/src/page/homepage.js index 37ec4426..e60256dc 100644 --- a/src/page/homepage.js +++ b/src/page/homepage.js @@ -112,7 +112,8 @@ export function writeTargetless({wikiData}) { link.newsIndex('', {text: strings('newsIndex.title'), to}), wikiInfo.features.flashesAndGames && link.flashIndex('', {text: strings('flashIndex.title'), to}), - ...staticPageData.filter(page => page.listed).map(link.staticPage) + ...staticPageData.filter(page => page.listed).map(page => + link.staticPage(page, {text: page.shortName})) ].filter(Boolean).map(link => `<span>${link}</span>`).join('\n')} </h2> ` |