-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-blog-post-js-5a1bdd07e407163fbc4d.js.map
1 lines (1 loc) · 4.07 KB
/
component---src-templates-blog-post-js-5a1bdd07e407163fbc4d.js.map
1
{"version":3,"sources":["webpack://arrrni.github.io/./src/templates/blog-post.js"],"names":["BlogPostTemplate","render","post","this","props","data","markdownRemark","siteTitle","get","siteDescription","excerpt","pageContext","previous","next","location","title","htmlAttributes","lang","meta","name","content","frontmatter","className","class","date","dangerouslySetInnerHTML","__html","html","categories","map","category","Link","to","style","display","flexWrap","justifyContent","listStyle","padding","fields","slug","rel","React"],"mappings":"mNAQMA,E,6FACJC,OAAA,WACE,IAAMC,EAAOC,KAAKC,MAAMC,KAAKC,eACvBC,EAAYC,IAAIL,KAAKC,MAAO,gCAC5BK,EAAkBP,EAAKQ,QAC7B,EAA2BP,KAAKC,MAAMO,YAA9BC,EAAR,EAAQA,SAAUC,EAAlB,EAAkBA,KAElB,OACE,gBAAC,IAAD,CAAQC,SAAUX,KAAKC,MAAMU,SAAUC,MAAOR,GAC5C,gBAAC,IAAD,CACES,eAAgB,CAAEC,KAAM,MACxBC,KAAM,CAAC,CAAEC,KAAM,cAAeC,QAASX,IACvCM,MAAUb,EAAKmB,YAAYN,MAAtB,MAAiCR,IAExC,uBAAKe,UAAU,6BACf,sBAAIA,UAAU,SAASpB,EAAKmB,YAAYN,OACxC,uBAAKQ,MAAM,8BACT,wBAAMA,MAAM,0BAAZ,WACA,wBAAMA,MAAM,kBAAkBrB,EAAKmB,YAAYG,QAGjD,uBAAKF,UAAU,UAAUG,wBAAyB,CAAEC,OAAQxB,EAAKyB,QACjE,2BACCzB,EAAKmB,YAAYO,WAAWC,KAAI,SAAAC,GAAQ,OACzC,gBAAC,EAAAC,KAAD,CAAMC,GAAE,aAAeF,GACrB,wBAAMP,MAAM,OAAOO,OAGrB,2BACA,gBAAC,IAAD,MAEA,sBACEG,MAAO,CACLC,QAAS,OACTC,SAAU,OACVC,eAAgB,gBAChBC,UAAW,OACXC,QAAS,IAGX,0BAEI1B,GACA,gBAAC,EAAAmB,KAAD,CAAMC,GAAIpB,EAAS2B,OAAOC,KAAMC,IAAI,QAApC,KACK7B,EAASS,YAAYN,QAI9B,0BAEIF,GACA,gBAAC,EAAAkB,KAAD,CAAMC,GAAInB,EAAK0B,OAAOC,KAAMC,IAAI,QAC7B5B,EAAKQ,YAAYN,MADpB,U,GAnDiB2B,aA8D/B","file":"component---src-templates-blog-post-js-5a1bdd07e407163fbc4d.js","sourcesContent":["import React from 'react'\nimport Helmet from 'react-helmet'\nimport { Link,graphql } from 'gatsby'\nimport get from 'lodash/get'\n\nimport Bio from '../components/Bio'\nimport Layout from '../components/Layout'\n\nclass BlogPostTemplate extends React.Component {\n render() {\n const post = this.props.data.markdownRemark\n const siteTitle = get(this.props, 'data.site.siteMetadata.title')\n const siteDescription = post.excerpt\n const { previous, next } = this.props.pageContext\n\n return (\n <Layout location={this.props.location} title={siteTitle}>\n <Helmet\n htmlAttributes={{ lang: 'en' }}\n meta={[{ name: 'description', content: siteDescription }]}\n title={`${post.frontmatter.title} | ${siteTitle}`}\n />\n <div className=\"content has-text-centered\">\n <h1 className=\"title\">{post.frontmatter.title}</h1>\n <div class=\"tags has-addons level-item\">\n <span class=\"tag is-rounded is-info\">@arrrni</span>\n <span class=\"tag is-rounded\">{post.frontmatter.date}</span>\n </div>\n </div>\n <div className=\"content\" dangerouslySetInnerHTML={{ __html: post.html }} />\n <hr/>\n {post.frontmatter.categories.map(category => \n <Link to={`/category/${category}`}>\n <span class=\"tag\">{category}</span>\n </Link>\n )}\n <hr/>\n <Bio />\n\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 {\n previous &&\n <Link to={previous.fields.slug} rel=\"prev\">\n ← {previous.frontmatter.title}\n </Link>\n }\n </li>\n <li>\n {\n next &&\n <Link to={next.fields.slug} rel=\"next\">\n {next.frontmatter.title} →\n </Link>\n }\n </li>\n </ul>\n </Layout>\n )\n }\n}\n\nexport default BlogPostTemplate\n\nexport const pageQuery = graphql`\n query BlogPostBySlug($slug: String!) {\n site {\n siteMetadata {\n title\n author\n }\n }\n markdownRemark(fields: { slug: { eq: $slug } }) {\n id\n excerpt\n html\n frontmatter {\n title\n categories\n date(formatString: \"MMMM DD, YYYY\")\n }\n }\n }\n`\n"],"sourceRoot":""}