-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-blog-post-template-tsx-7e1b9e6a424529d9c229.js.map
1 lines (1 loc) · 2.83 KB
/
component---src-templates-blog-post-template-tsx-7e1b9e6a424529d9c229.js.map
1
{"version":3,"file":"component---src-templates-blog-post-template-tsx-7e1b9e6a424529d9c229.js","mappings":"kJAkCA,IAtBe,SAAC,GAAiC,IAA/BA,EAA+B,EAA/BA,SAChB,OACE,gCACI,+BAGA,wBAAMC,MAAO,CAACC,UAAW,GAAIC,QAAS,KAAMH,GAC5C,0BACEC,MAAO,CACLG,OAAQ,KAGV,qBAAGC,KAAK,KAAR,W,8DCKV,UAvBiB,SAAC,GAA0B,IAAxBC,EAAwB,EAAxBA,KAAMC,EAAkB,EAAlBA,YAClBC,EAAOF,EAAKG,eACVC,EAAmBH,EAAnBG,SAAUC,EAASJ,EAATI,KAElB,OACE,gBAAC,IAAD,KACE,0BAAKH,EAAKI,YAAYC,OACtB,4BAAOL,EAAKI,YAAYE,MACxB,uBAAKb,MAAO,CAACC,UAAW,IAAKa,wBAAyB,CAAEC,OAAQR,EAAKS,QAEpEP,GACC,gBAAC,EAAAQ,KAAD,CAAMC,GAAIT,EAASU,OAAOC,KAAMC,IAAI,QAApC,UAIDX,GACC,gBAAC,EAAAO,KAAD,CAAMC,GAAIR,EAAKS,OAAOC,KAAMC,IAAI,QAAhC","sources":["webpack://gatsby-starter-default/./src/components/layout.tsx","webpack://gatsby-starter-default/./src/templates/blog-post-template.tsx"],"sourcesContent":["/**\n * Layout component that queries for data\n * with Gatsby's useStaticQuery component\n *\n * See: https://www.gatsbyjs.com/docs/use-static-query/\n */\n\nimport * as React from \"react\"\nimport PropTypes from \"prop-types\"\nimport { useStaticQuery, graphql } from \"gatsby\"\nimport \"./layout.css\"\n\nconst Layout = ({ children }:{children: any}) => {\n return (\n <>\n <header>\n\n </header>\n <main style={{marginTop: 16, padding: 24}}>{children}</main>\n <footer\n style={{\n margin: 24,\n }}\n >\n <a href=\"/\">Top</a>\n </footer>\n </>\n )\n}\n\nLayout.propTypes = {\n children: PropTypes.node.isRequired,\n}\n\nexport default Layout\n","import React from \"react\"\nimport { graphql, Link } from \"gatsby\"\nimport Layout from \"../components/layout\"\nimport \"prismjs/themes/prism-dark.css\"\nimport \"../components/codeblock.css\"\n\nconst BlogPost = ({ data, pageContext }) => {\n const post = data.markdownRemark\n const { previous, next } = pageContext\n\n return (\n <Layout>\n <h1>{post.frontmatter.title}</h1>\n <time>{post.frontmatter.date}</time>\n <div style={{marginTop: 16}} dangerouslySetInnerHTML={{ __html: post.html }} />\n\n {previous && (\n <Link to={previous.fields.slug} rel=\"prev\">\n « Prev\n </Link>\n )}\n {next && (\n <Link to={next.fields.slug} rel=\"next\">\n Next »\n </Link>\n )}\n </Layout>\n )\n}\nexport default BlogPost\n\nexport const pageQuery = graphql`\n query BlogPostSlug($slug: String!) {\n markdownRemark(fields: { slug: { eq: $slug } }) {\n html\n frontmatter {\n title\n date(formatString: \"YYYY/MM/DD\")\n }\n }\n }\n`\n"],"names":["children","style","marginTop","padding","margin","href","data","pageContext","post","markdownRemark","previous","next","frontmatter","title","date","dangerouslySetInnerHTML","__html","html","Link","to","fields","slug","rel"],"sourceRoot":""}