github.com/uchennaokeke444/nomad@v0.11.8/website/layouts/intro.jsx (about) 1 import DocsPage from '@hashicorp/react-docs-page' 2 import order from '../data/intro-navigation.js' 3 import { frontMatter as data } from '../pages/intro/**/*.mdx' 4 import Head from 'next/head' 5 import Link from 'next/link' 6 7 function IntroLayoutWrapper(pageMeta) { 8 function IntroLayout(props) { 9 return ( 10 <DocsPage 11 {...props} 12 product="nomad" 13 head={{ 14 is: Head, 15 title: `${pageMeta.page_title} | Nomad by HashiCorp`, 16 description: pageMeta.description, 17 siteName: 'Nomad by HashiCorp' 18 }} 19 sidenav={{ 20 Link, 21 category: 'intro', 22 currentPage: props.path, 23 data, 24 order 25 }} 26 resourceURL={`https://github.com/hashicorp/nomad/blob/master/website/pages/${pageMeta.__resourcePath}`} 27 /> 28 ) 29 } 30 31 IntroLayout.getInitialProps = ({ asPath }) => ({ path: asPath }) 32 33 return IntroLayout 34 } 35 36 export default IntroLayoutWrapper