github.com/uchennaokeke444/nomad@v0.11.8/website/layouts/guides.jsx (about)

     1  import DocsPage from '@hashicorp/react-docs-page'
     2  import order from '../data/guides-navigation.js'
     3  import { frontMatter as data } from '../pages/guides/**/*.mdx'
     4  import Head from 'next/head'
     5  import Link from 'next/link'
     6  
     7  function GuidesLayoutWrapper(pageMeta) {
     8    function GuidesLayout(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: 'guides',
    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    GuidesLayout.getInitialProps = ({ asPath }) => ({ path: asPath })
    32  
    33    return GuidesLayout
    34  }
    35  
    36  export default GuidesLayoutWrapper