1
0
Fork 0

wip(shared): Nav prebuild changes

This commit is contained in:
Joost De Cock 2023-03-28 16:47:07 +02:00
parent 847598f059
commit 995bb23551
17 changed files with 103 additions and 349 deletions

View file

@ -15,12 +15,16 @@ import { freeSewingConfig as conf } from 'site/freesewing.config.mjs'
* Note: Set 'c' to set the control level to hide things from users
*/
const ns = ['account']
const ns = ['account', 'sections']
const sitePages = (locale, t = false) => {
// Handle t not being present
if (!t) t = (string) => string
const pages = {
account: {
t: t('sections:account'),
s: 'account',
},
profile: {
t: t('yourProfile'),
s: 'profile',
@ -31,10 +35,6 @@ const sitePages = (locale, t = false) => {
s: 'typography',
h: 1,
},
account: {
t: t('account'),
s: 'account',
},
}
for (const section in conf.account.fields) {
for (const field in conf.account.fields[section]) {