The defaul theme lets you add a nav bar to the top of the page by
adding a nav
declaration to the themeConfig
object inside
module.exports
.
Here's a simple one with links to the home page and a root-level Contact page:
module.exports = {
themeConfig: {
nav: [
{ text: 'Home', link: '/' },
{ text: 'Contact', link: '/contact.md' },
]
}
}
Here's an example using the previous navbar code: