-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-blog-post-js-1b3764f2f62684106360.js.map
1 lines (1 loc) · 4.16 KB
/
component---src-templates-blog-post-js-1b3764f2f62684106360.js.map
1
{"version":3,"sources":["webpack:///./src/templates/blog-post.js"],"names":["BlogPostTemplate","render","post","this","props","data","markdownRemark","siteTitle","site","siteMetadata","title","pageContext","previous","next","location","frontmatter","description","excerpt","style","marginTop","rhythm","marginBottom","scale","display","date","dangerouslySetInnerHTML","__html","html","flexWrap","justifyContent","listStyle","padding","to","fields","slug","rel","React","Component","pageQuery"],"mappings":"6OAQMA,E,gLACJC,OAAA,WACE,IAAMC,EAAOC,KAAKC,MAAMC,KAAKC,eACvBC,EAAYJ,KAAKC,MAAMC,KAAKG,KAAKC,aAAaC,MAF7C,EAGoBP,KAAKC,MAAMO,YAA9BC,EAHD,EAGCA,SAAUC,EAHX,EAGWA,KAElB,OACE,kBAAC,IAAD,CAAQC,SAAUX,KAAKC,MAAMU,SAAUJ,MAAOH,GAC5C,kBAAC,IAAD,CACEG,MAAOR,EAAKa,YAAYL,MACxBM,YAAad,EAAKa,YAAYC,aAAed,EAAKe,UAEpD,iCACE,gCACE,wBACEC,MAAO,CACLC,UAAWC,YAAO,GAClBC,aAAc,IAGfnB,EAAKa,YAAYL,OAEpB,uBACEQ,MAAK,iBACAI,aAAM,IADN,CAEHC,QAAQ,QACRF,aAAcD,YAAO,MAGtBlB,EAAKa,YAAYS,OAGtB,6BAASC,wBAAyB,CAAEC,OAAQxB,EAAKyB,QACjD,wBACET,MAAO,CACLG,aAAcD,YAAO,OAK3B,6BACE,wBACEF,MAAO,CACLK,QAAQ,OACRK,SAAS,OACTC,eAAe,gBACfC,UAAU,OACVC,QAAS,IAGX,4BACGnB,GACC,kBAAC,OAAD,CAAMoB,GAAIpB,EAASqB,OAAOC,KAAMC,IAAI,QAApC,KACKvB,EAASG,YAAYL,QAI9B,4BACGG,GACC,kBAAC,OAAD,CAAMmB,GAAInB,EAAKoB,OAAOC,KAAMC,IAAI,QAC7BtB,EAAKE,YAAYL,MADpB,W,GA3De0B,IAAMC,WAuEtBrC,YAER,IAAMsC,EAAS","file":"component---src-templates-blog-post-js-1b3764f2f62684106360.js","sourcesContent":["import React from \"react\"\r\nimport { Link, graphql } from \"gatsby\"\r\n\r\nimport Layout from \"../components/layout\"\r\nimport SEO from \"../components/seo\"\r\nimport { rhythm, scale } from \"../utils/typography\"\r\nimport \"katex/dist/katex.min.css\"\r\n\r\nclass BlogPostTemplate extends React.Component {\r\n render() {\r\n const post = this.props.data.markdownRemark\r\n const siteTitle = this.props.data.site.siteMetadata.title\r\n const { previous, next } = this.props.pageContext\r\n\r\n return (\r\n <Layout location={this.props.location} title={siteTitle}>\r\n <SEO\r\n title={post.frontmatter.title}\r\n description={post.frontmatter.description || post.excerpt}\r\n />\r\n <article>\r\n <header>\r\n <h1\r\n style={{\r\n marginTop: rhythm(1),\r\n marginBottom: 0,\r\n }}\r\n >\r\n {post.frontmatter.title}\r\n </h1>\r\n <p\r\n style={{\r\n ...scale(-1 / 5),\r\n display: `block`,\r\n marginBottom: rhythm(1),\r\n }}\r\n >\r\n {post.frontmatter.date}\r\n </p>\r\n </header>\r\n <section dangerouslySetInnerHTML={{ __html: post.html }} />\r\n <hr\r\n style={{\r\n marginBottom: rhythm(1),\r\n }}\r\n />\r\n </article>\r\n\r\n <nav>\r\n <ul\r\n style={{\r\n display: `flex`,\r\n flexWrap: `wrap`,\r\n justifyContent: `space-between`,\r\n listStyle: `none`,\r\n padding: 0,\r\n }}\r\n >\r\n <li>\r\n {previous && (\r\n <Link to={previous.fields.slug} rel=\"prev\">\r\n ← {previous.frontmatter.title}\r\n </Link>\r\n )}\r\n </li>\r\n <li>\r\n {next && (\r\n <Link to={next.fields.slug} rel=\"next\">\r\n {next.frontmatter.title} →\r\n </Link>\r\n )}\r\n </li>\r\n </ul>\r\n </nav>\r\n </Layout>\r\n )\r\n }\r\n}\r\n\r\nexport default BlogPostTemplate\r\n\r\nexport const pageQuery = graphql`\r\n query BlogPostBySlug($slug: String!) {\r\n site {\r\n siteMetadata {\r\n title\r\n author\r\n }\r\n }\r\n markdownRemark(fields: { slug: { eq: $slug } }) {\r\n id\r\n excerpt(pruneLength: 160)\r\n html\r\n frontmatter {\r\n title\r\n date(formatString: \"MMMM DD, YYYY\")\r\n description\r\n }\r\n }\r\n }\r\n`\r\n"],"sourceRoot":""}