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)}
${leftnavFn(opts.path)}
${opts.content}
${footer(opts.path)}
`
}