« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/page/flash.js5
-rw-r--r--src/page/news.js5
2 files changed, 2 insertions, 8 deletions
diff --git a/src/page/flash.js b/src/page/flash.js
index 02b20c5..54653a0 100644
--- a/src/page/flash.js
+++ b/src/page/flash.js
@@ -162,10 +162,7 @@ function generateNavForFlash(flash, {
 
     return {
         links: [
-            {
-                path: ['localized.home'],
-                title: wikiInfo.shortName
-            },
+            {toHome: true},
             {
                 path: ['localized.flashIndex'],
                 title: strings('flashIndex.title')
diff --git a/src/page/news.js b/src/page/news.js
index 8dc6598..759bb93 100644
--- a/src/page/news.js
+++ b/src/page/news.js
@@ -105,10 +105,7 @@ function generateNewsEntryNav(entry, {
 
     return {
         links: [
-            {
-                path: ['localized.home'],
-                title: wikiInfo.shortName
-            },
+            {toHome: true},
             {
                 path: ['localized.newsIndex'],
                 title: strings('newsEntryPage.nav.news')