var head = require('./head.part') var tabs = require('./tabs.part') var leftnav = require('./leftnav.part') var footer = require('./footer.part') module.exports = (opts) => { // render the hero var title = '' if (opts.bigHero) { title = `

Scuttlebot
peer-to-peer mesh database

` } else { title = `

Scuttlebot
peer-to-peer mesh database

` } // pick the nav var leftnavFn = leftnav[opts.tab || 'basics'] // render the page return ` ${head()} ${title} ${tabs(opts.tab)} ${footer(opts.path)} ` }