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/things/homepage-layout.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/data/things/homepage-layout.js') diff --git a/src/data/things/homepage-layout.js b/src/data/things/homepage-layout.js index 344716cb..c18e8110 100644 --- a/src/data/things/homepage-layout.js +++ b/src/data/things/homepage-layout.js @@ -7,6 +7,7 @@ export class HomepageLayout extends Thing { HomepageLayoutRow, validators: { + isStringNonEmpty, validateArrayItems, validateInstanceOf, }, @@ -15,6 +16,11 @@ export class HomepageLayout extends Thing { sidebarContent: Thing.common.simpleString(), + navbarLinks: { + flags: {update: true, expose: true}, + update: {validate: validateArrayItems(isStringNonEmpty)}, + }, + rows: { flags: {update: true, expose: true}, -- cgit 1.3.0-6-gf8a5