Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.initLocals = function(req, res, next) {
- var locals = res.locals;
- locals.navLinks = [
- { label: 'Home', key: 'home', href: '/' },
- { label: 'About Us', key: 'about', pages: [
- { label: 'What We Do', subkey: 'whatwedo', href: '/whatwedo' },
- { label: 'Our Journey', subkey: 'journey', href: '/journey' },
- { label: 'Meet the Committee', subkey: 'committee', href: '/committee' },
- { label: 'Meet the Trustees', subkey: 'trustees', href: '/trustees' }
- ] },
- { label: 'Get Involved', key: 'getinvolved', pages: [
- { label: 'For Tutors', subkey: 'getinvolvedtutors', href: '/getinvolvedtutors'},
- { label: 'For Schools', subkey: 'getinvolvedschools', href: '/getinvolvedschools'}
- ] },
- { label: 'Blog', key: 'blog', href: '/blog' },
- { label: 'Contact Us', key: 'contact', href: '/contact'}
- ];
- locals.user = req.user;
- next();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement