-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-blog-post-js-fa7ccc49c6b664fbcb72.js.map
1 lines (1 loc) · 3.83 KB
/
component---src-templates-blog-post-js-fa7ccc49c6b664fbcb72.js.map
1
{"version":3,"sources":["webpack://gatsby-starter-blog/./src/templates/blog-post.js"],"names":["data","pageContext","location","post","markdownRemark","siteTitle","site","siteMetadata","title","previous","next","frontmatter","description","excerpt","script","src","style","marginTop","rhythm","marginBottom","scale","display","date","dangerouslySetInnerHTML","__html","html","flexWrap","justifyContent","listStyle","padding","Link","to","fields","slug","rel"],"mappings":"4LAkFA,UA3EyB,SAAC,GAAqC,IAAnCA,EAAkC,EAAlCA,KAAMC,EAA4B,EAA5BA,YAAaC,EAAe,EAAfA,SACvCC,EAAOH,EAAKI,eACZC,EAAYL,EAAKM,KAAKC,aAAaC,MACjCC,EAAmBR,EAAnBQ,SAAUC,EAAST,EAATS,KAElB,OACE,gBAAC,IAAD,CAAQR,SAAUA,EAAUM,MAAOH,GACjC,gBAAC,IAAD,CACEG,MAAOL,EAAKQ,YAAYH,MACxBI,YAAaT,EAAKQ,YAAYC,aAAeT,EAAKU,QAClDC,OAAQ,CACN,CAAEC,IAAK,wCAGX,+BACE,8BACE,sBACEC,MAAO,CACLC,WAAWC,QAAO,GAClBC,aAAc,IAGfhB,EAAKQ,YAAYH,OAEpB,qBACEQ,MAAK,kBACAI,SAAM,IADN,CAEHC,QAAQ,QACRF,cAAcD,QAAO,MAGtBf,EAAKQ,YAAYW,OAGtB,2BAASC,wBAAyB,CAAEC,OAAQrB,EAAKsB,QACjD,sBACET,MAAO,CACLG,cAAcD,QAAO,MAGzB,gCAKF,2BACE,sBACEF,MAAO,CACLK,QAAQ,OACRK,SAAS,OACTC,eAAe,gBACfC,UAAU,OACVC,QAAS,IAGX,0BACGpB,GACC,gBAAC,EAAAqB,KAAD,CAAMC,GAAItB,EAASuB,OAAOC,KAAMC,IAAI,QAApC,KACKzB,EAASE,YAAYH,QAI9B,0BACGE,GACC,gBAAC,EAAAoB,KAAD,CAAMC,GAAIrB,EAAKsB,OAAOC,KAAMC,IAAI,QAC7BxB,EAAKC,YAAYH,MADpB","file":"component---src-templates-blog-post-js-fa7ccc49c6b664fbcb72.js","sourcesContent":["import React from \"react\"\nimport { Link, graphql } from \"gatsby\"\n\nimport Layout from \"../components/layout\"\nimport SEO from \"../components/seo\"\nimport { rhythm, scale } from \"../utils/typography\"\n\nconst BlogPostTemplate = ({ data, pageContext, location }) => {\n const post = data.markdownRemark\n const siteTitle = data.site.siteMetadata.title\n const { previous, next } = pageContext\n\n return (\n <Layout location={location} title={siteTitle}>\n <SEO\n title={post.frontmatter.title}\n description={post.frontmatter.description || post.excerpt}\n script={[\n { src: 'https://vk.com/js/api/share.js?93' }\n ]}\n />\n <article>\n <header>\n <h1\n style={{\n marginTop: rhythm(1),\n marginBottom: 0,\n }}\n >\n {post.frontmatter.title}\n </h1>\n <p\n style={{\n ...scale(-1 / 5),\n display: `block`,\n marginBottom: rhythm(1),\n }}\n >\n {post.frontmatter.date}\n </p>\n </header>\n <section dangerouslySetInnerHTML={{ __html: post.html }} />\n <hr\n style={{\n marginBottom: rhythm(1),\n }}\n />\n <footer>\n\n </footer>\n </article>\n\n <nav>\n <ul\n style={{\n display: `flex`,\n flexWrap: `wrap`,\n justifyContent: `space-between`,\n listStyle: `none`,\n padding: 0,\n }}\n >\n <li>\n {previous && (\n <Link to={previous.fields.slug} rel=\"prev\">\n ← {previous.frontmatter.title}\n </Link>\n )}\n </li>\n <li>\n {next && (\n <Link to={next.fields.slug} rel=\"next\">\n {next.frontmatter.title} →\n </Link>\n )}\n </li>\n </ul>\n </nav>\n </Layout>\n )\n}\n\nexport default BlogPostTemplate\n\nexport const pageQuery = graphql`\n query BlogPostBySlug($slug: String!) {\n site {\n siteMetadata {\n title\n }\n }\n markdownRemark(fields: { slug: { eq: $slug } }) {\n id\n excerpt(pruneLength: 160)\n html\n frontmatter {\n title\n date(formatString: \"MMMM DD, YYYY\")\n description\n }\n }\n }\n`\n"],"sourceRoot":""}