text: import React from "react"
  import { graphql} from "gatsby"
  import LandingTemplate from '../components/LandingPage/LandingTemplate'
  
  const MakePartTemplate = (props) => {
      const { siteUrl } = props.data.site.siteMetadata;
      const bcrumb = [
        {'name':'Home', 'link':siteUrl},
        {'name':props.data.PageData.makemodels.nodes[0].name, 'link':siteUrl+'/'+props.data.PageData.makemodels.nodes[0].slug},
        {'name':props.data.PageData.title, 'link':null}
      ]
      return (
        <LandingTemplate data={props} cpath={props.location.pathname} bcrumb={bcrumb}/>   
      )
  }
  
  export const query = graphql`
  query($id : String){ 
    site {
      siteMetadata {
        siteUrl
      }
    }
    PageData : wpMpart(id: {eq: $id}) {
          seo {
            title
            metaDesc
            focuskw
            metaKeywords
            metaRobotsNoindex
            metaRobotsNofollow              
            schema {
                articleType
                pageType
                raw
            }
        }
          content
          id
          slug
          title
          featuredImage {
          node {
              localFile {
              publicURL
              childImageSharp {
                  gatsbyImageData(
                      width: 500
                    )
              }
              }
          }
          }
          makemodels {
          nodes {
              id
              name
              slug
          }
          }
          morecontent {
          popularUsedPartsTitle
          popularUsedPartsSubTitle
          popularUsedParts
          popularUsedModelPartsTitle
          popularUsedModelPartsSubTitle
          popularUsedModelParts
          aboutContent
          aboutTitle
          aboutImage {
              localFile {
              childImageSharp {
                  gatsbyImageData(
                      width: 500
                    )
              }
              }
          }
          summaryAboveTitle
          summaryTitle
          summaryContent
          summaryImage {
            localFile {
            childImageSharp {
                gatsbyImageData(
                    width: 500
                  )
            }
            }
        }
          benefitsTopContent
          benefitsListingContent
          benefitsBottomContent
          benefitsTitle
          benefitsImage{
              localFile {
                  childImageSharp {
                      gatsbyImageData(
                          width: 500
                        )
                  }
              }
          }
          whyBackroad
          whyBackroadTopContent
          whyBackroadBottomContent
          wnyBackroadImage{
              localFile {
                  childImageSharp {
                      gatsbyImageData(
                          width: 1200
                        )
                  }
              }
          }
          recentArrivalsTitle
          recentArrivals {
              ... on WpRarrival {
                id
                title
                itemprice {
                  itemPrice
                }
                featuredImage {
                  node {
                    localFile {
                      childImageSharp {
                          gatsbyImageData(
                              width: 400
                            )
                      }
                    }
                  }
                }
              }
            }
            faqTitle
            faqSubTitle
            faqs {
                ... on WpFaq {
                id
                content
                title
                }
            }
            slides {
                ... on WpSlide {
                id
                title
                content
                featuredImage {
                    node {
                    localFile {
                        childImageSharp {
                          gatsbyImageData(height: 900, width: 1600)
                          }
                        
                    }              
                    }
                }
                }
            }
            }
      }
  } 
  ` 
  export default MakePartTemplate
    