-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-page-template-page-template-tsx-c2d1d9bb749983c1d3ce.js.map
1 lines (1 loc) · 2.35 KB
/
component---src-templates-page-template-page-template-tsx-c2d1d9bb749983c1d3ce.js.map
1
{"version":3,"file":"component---src-templates-page-template-page-template-tsx-c2d1d9bb749983c1d3ce.js","mappings":"2OAiBA,MA6BaA,EAAwBC,IAAe,IAAd,KAAEC,GAAMD,EAC5C,MAAM,MAAEE,EAAK,SAAEC,IAAaC,EAAAA,EAAAA,OAG1BC,aAAeH,MAAOI,EAAWC,YAAaC,EAAkB,KAC9DP,EAAKQ,eACHF,EAAcC,GAAmBL,EAEvC,OAAOO,EAAAA,cAACC,EAAAA,EAAI,CAACT,MAAUI,EAAS,MAAMJ,EAASK,YAAaA,GAAe,EAG7E,UAxCsCK,IAAsB,IAArB,KAAEX,GAAaW,EACpD,MAAQC,KAAMC,GAASb,EAAKQ,gBACtB,YAAEJ,GAAgBJ,EAAKQ,gBACvB,MAAEP,GAAUG,EAElB,OACEK,EAAAA,cAACK,EAAAA,EAAM,KACLL,EAAAA,cAACM,EAAAA,EAAO,MACRN,EAAAA,cAACO,EAAAA,EAAI,CAACf,MAAOA,GACXQ,EAAAA,cAAA,OAAKQ,wBAAyB,CAAEC,OAAQL,MAEnC,C","sources":["webpack://gatsby-starter-lumen/./src/templates/PageTemplate/PageTemplate.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { graphql } from \"gatsby\";\n\nimport { Layout } from \"@/components/Layout\";\nimport { Meta } from \"@/components/Meta\";\nimport { Page } from \"@/components/Page\";\nimport { Sidebar } from \"@/components/Sidebar\";\nimport { useSiteMetadata } from \"@/hooks\";\nimport { Node } from \"@/types\";\n\ninterface Props {\n data: {\n markdownRemark: Node;\n };\n}\n\nconst PageTemplate: React.FC<Props> = ({ data }: Props) => {\n const { html: body } = data.markdownRemark;\n const { frontmatter } = data.markdownRemark;\n const { title } = frontmatter;\n\n return (\n <Layout>\n <Sidebar />\n <Page title={title}>\n <div dangerouslySetInnerHTML={{ __html: body }} />\n </Page>\n </Layout>\n );\n};\n\nexport const query = graphql`\n query PageTemplate($slug: String!) {\n markdownRemark(fields: { slug: { eq: $slug } }) {\n id\n html\n frontmatter {\n title\n date\n description\n }\n }\n }\n`;\n\nexport const Head: React.FC<Props> = ({ data }) => {\n const { title, subtitle } = useSiteMetadata();\n\n const {\n frontmatter: { title: pageTitle, description: pageDescription = \"\" },\n } = data.markdownRemark;\n const description = pageDescription || subtitle;\n\n return <Meta title={`${pageTitle} - ${title}`} description={description} />;\n};\n\nexport default PageTemplate;\n"],"names":["Head","_ref2","data","title","subtitle","useSiteMetadata","frontmatter","pageTitle","description","pageDescription","markdownRemark","React","Meta","_ref","html","body","Layout","Sidebar","Page","dangerouslySetInnerHTML","__html"],"sourceRoot":""}