-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-blog-post-template-tsx-bc187c143c1709f18702.js.map
1 lines (1 loc) · 3 KB
/
component---src-templates-blog-post-template-tsx-bc187c143c1709f18702.js.map
1
{"version":3,"file":"component---src-templates-blog-post-template-tsx-bc187c143c1709f18702.js","mappings":"wIAkCA,IAtBeA,IAAmC,IAAlC,SAAEC,GAA0B,EAC1C,OACEC,EAAAA,cAAAA,EAAAA,SAAAA,KACIA,EAAAA,cAAAA,SAAAA,MAGAA,EAAAA,cAAAA,OAAAA,CAAMC,MAAO,CAACC,UAAW,GAAIC,QAAS,KAAMJ,GAC5CC,EAAAA,cAAAA,SAAAA,CACEC,MAAO,CACLG,OAAQ,KAGVJ,EAAAA,cAAAA,IAAAA,CAAGK,KAAK,KAAG,QAEd,C,gECGP,UAvBiBP,IAA2B,IAA1B,KAAEQ,EAAI,YAAEC,GAAa,EACrC,MAAMC,EAAOF,EAAKG,gBACZ,SAAEC,EAAQ,KAAEC,GAASJ,EAE3B,OACEP,EAAAA,cAACY,EAAAA,EAAM,KACLZ,EAAAA,cAAAA,KAAAA,KAAKQ,EAAKK,YAAYC,OACtBd,EAAAA,cAAAA,OAAAA,KAAOQ,EAAKK,YAAYE,MACxBf,EAAAA,cAAAA,MAAAA,CAAKC,MAAO,CAACC,UAAW,IAAKc,wBAAyB,CAAEC,OAAQT,EAAKU,QAEpER,GACCV,EAAAA,cAACmB,EAAAA,KAAI,CAACC,GAAIV,EAASW,OAAOC,KAAMC,IAAI,QAAM,UAI3CZ,GACCX,EAAAA,cAACmB,EAAAA,KAAI,CAACC,GAAIT,EAAKU,OAAOC,KAAMC,IAAI,QAAM,UAIjC,C","sources":["webpack://umekawa_github_io/./src/components/layout.tsx","webpack://umekawa_github_io/./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":["_ref","children","React","style","marginTop","padding","margin","href","data","pageContext","post","markdownRemark","previous","next","Layout","frontmatter","title","date","dangerouslySetInnerHTML","__html","html","Link","to","fields","slug","rel"],"sourceRoot":""}