-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-blog-post-js-885b4c403245d58aef51.js.map
1 lines (1 loc) · 4.01 KB
/
component---src-templates-blog-post-js-885b4c403245d58aef51.js.map
1
{"version":3,"sources":["webpack:///./src/templates/blog-post.js"],"names":["BlogPostTemplate","data","location","post","markdownRemark","siteTitle","site","siteMetadata","title","previous","next","frontmatter","description","excerpt","className","itemScope","itemType","itemProp","date","dangerouslySetInnerHTML","__html","html","style","display","flexWrap","justifyContent","listStyle","padding","to","fields","slug","rel","pageQuery"],"mappings":"2FAAA,0HAkEeA,UA3DU,SAAC,GAAwB,IAAD,EAArBC,EAAqB,EAArBA,KAAMC,EAAe,EAAfA,SAC1BC,EAAOF,EAAKG,eACZC,GAAY,UAAAJ,EAAKK,KAAKC,oBAAV,eAAwBC,QAAxB,QACVC,EAAmBR,EAAnBQ,SAAUC,EAAST,EAATS,KAElB,OACE,kBAAC,IAAD,CAAQR,SAAUA,EAAUM,MAAOH,GACjC,kBAAC,IAAD,CACEG,MAAOL,EAAKQ,YAAYH,MACxBI,YAAaT,EAAKQ,YAAYC,aAAeT,EAAKU,UAEpD,6BACEC,UAAU,YACVC,WAAS,EACTC,SAAS,6BAET,gCACE,wBAAIC,SAAS,YAAYd,EAAKQ,YAAYH,OAC1C,2BAAIL,EAAKQ,YAAYO,OAEvB,6BACEC,wBAAyB,CAAEC,OAAQjB,EAAKkB,MACxCJ,SAAS,gBAEX,6BACA,gCACE,kBAAC,IAAD,QAGJ,yBAAKH,UAAU,iBACb,wBACEQ,MAAO,CACLC,QAAQ,OACRC,SAAS,OACTC,eAAe,gBACfC,UAAU,OACVC,QAAS,IAGX,4BACGlB,GACC,kBAAC,OAAD,CAAMmB,GAAInB,EAASoB,OAAOC,KAAMC,IAAI,QAApC,KACKtB,EAASE,YAAYH,QAI9B,4BACGE,GACC,kBAAC,OAAD,CAAMkB,GAAIlB,EAAKmB,OAAOC,KAAMC,IAAI,QAC7BrB,EAAKC,YAAYH,MADpB,WAaP,IAAMwB,EAAS","file":"component---src-templates-blog-post-js-885b4c403245d58aef51.js","sourcesContent":["import React from \"react\"\r\nimport { Link, graphql } from \"gatsby\"\r\n\r\nimport Bio from \"../components/bio\"\r\nimport Layout from \"../components/layout\"\r\nimport SEO from \"../components/seo\"\r\n\r\nconst BlogPostTemplate = ({ data, location }) => {\r\n const post = data.markdownRemark\r\n const siteTitle = data.site.siteMetadata?.title || `Title`\r\n const { previous, next } = data\r\n\r\n return (\r\n <Layout location={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 className=\"blog-post\"\r\n itemScope\r\n itemType=\"http://schema.org/Article\"\r\n >\r\n <header>\r\n <h1 itemProp=\"headline\">{post.frontmatter.title}</h1>\r\n <p>{post.frontmatter.date}</p>\r\n </header>\r\n <section\r\n dangerouslySetInnerHTML={{ __html: post.html }}\r\n itemProp=\"articleBody\"\r\n />\r\n <hr />\r\n <footer>\r\n <Bio />\r\n </footer>\r\n </article>\r\n <nav className=\"blog-post-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\nexport default BlogPostTemplate\r\n\r\nexport const pageQuery = graphql`\r\n query BlogPostBySlug(\r\n $id: String!\r\n $previousPostId: String\r\n $nextPostId: String\r\n ) {\r\n site {\r\n siteMetadata {\r\n title\r\n }\r\n }\r\n markdownRemark(id: { eq: $id }) {\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 previous: markdownRemark(id: { eq: $previousPostId }) {\r\n fields {\r\n slug\r\n }\r\n frontmatter {\r\n title\r\n }\r\n }\r\n next: markdownRemark(id: { eq: $nextPostId }) {\r\n fields {\r\n slug\r\n }\r\n frontmatter {\r\n title\r\n }\r\n }\r\n }\r\n`\r\n"],"sourceRoot":""}