From a312b897e99251ff9d53014dbb86c7a3b7b6609c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 1 Jan 2023 17:43:35 -0400 Subject: specify homepage navbar links & order in data ...rather than just making a guess off the order files are listed by directory access, and using out-of-place 'Show in Navigation Bar' --- src/data/yaml.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/data/yaml.js') diff --git a/src/data/yaml.js b/src/data/yaml.js index 6ddd3a13..02e56d64 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -377,8 +377,6 @@ export const processStaticPageDocument = makeProcessDocument(T.StaticPage, { content: 'Content', stylesheet: 'Style', - - showInNavigationBar: 'Show in Navigation Bar', }, }); @@ -403,6 +401,7 @@ export const processWikiInfoDocument = makeProcessDocument(T.WikiInfo, { export const processHomepageLayoutDocument = makeProcessDocument(T.HomepageLayout, { propertyFieldMapping: { sidebarContent: 'Sidebar Content', + navbarLinks: 'Navbar Links', }, ignoredFields: ['Homepage'], @@ -896,6 +895,8 @@ export const dataSteps = [ processDocument: processStaticPageDocument, save(staticPageData) { + sortAlphabetically(staticPageData); + return {staticPageData}; }, }, -- cgit 1.3.0-6-gf8a5