From 82bd55a11af3990081bc289c6bfd2c2aa1dc9a3b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 5 Mar 2022 20:40:49 -0400 Subject: use toHome nav shorthand in flash & news pages --- src/page/flash.js | 5 +---- src/page/news.js | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/page/flash.js b/src/page/flash.js index 02b20c5d..54653a00 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 8dc65981..759bb93b 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') -- cgit 1.3.0-6-gf8a5