wip(shared): Nav prebuild changes
This commit is contained in:
parent
847598f059
commit
995bb23551
17 changed files with 103 additions and 349 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue