« get me outta code hell

quick kinda hack to show short names in nav bar - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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
commit2db6ae3236fba513e33a2f594dcc1aa405881f02 (patch)
tree816513d6583ee2bf06caf6545dff49bf31dc157e /src
parente589765bb4967aeb97885892d4af4c79422e30e5 (diff)
quick kinda hack to show short names in nav bar
Diffstat (limited to 'src')
-rw-r--r--src/page/homepage.js3
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>
                 `