-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-index-js-a048a1dcfe3b65279492.js.map
1 lines (1 loc) · 2.95 KB
/
component---src-pages-index-js-a048a1dcfe3b65279492.js.map
1
{"version":3,"sources":["webpack:///./src/pages/index.js"],"names":["BlogIndex","render","data","this","props","siteTitle","site","siteMetadata","title","posts","allMarkdownRemark","edges","location","map","node","frontmatter","fields","slug","key","style","marginBottom","rhythm","boxShadow","to","date","dangerouslySetInnerHTML","__html","description","excerpt","React","Component","pageQuery"],"mappings":"qOAQMA,E,gLACJC,OAAA,WAAU,IACAC,EAASC,KAAKC,MAAdF,KACFG,EAAYH,EAAKI,KAAKC,aAAaC,MACnCC,EAAQP,EAAKQ,kBAAkBC,MAErC,OACE,kBAAC,IAAD,CAAQC,SAAUT,KAAKC,MAAMQ,SAAUJ,MAAOH,GAC5C,kBAAC,IAAD,CAAKG,MAAM,cACX,kBAAC,IAAD,MACCC,EAAMI,KAAI,YAAe,IAAZC,EAAW,EAAXA,KACNN,EAAQM,EAAKC,YAAYP,OAASM,EAAKE,OAAOC,KACpD,OACE,6BAASC,IAAKJ,EAAKE,OAAOC,MACxB,gCACE,wBACEE,MAAO,CACLC,aAAcC,YAAO,OAGvB,kBAAC,OAAD,CAAMF,MAAO,CAAEG,UAAU,QAAWC,GAAIT,EAAKE,OAAOC,MACjDT,IAGL,+BAAQM,EAAKC,YAAYS,OAE3B,iCACE,uBACEC,wBAAyB,CACvBC,OAAQZ,EAAKC,YAAYY,aAAeb,EAAKc,kB,GA7BzCC,IAAMC,WAyCf9B,YAER,IAAM+B,EAAS","file":"component---src-pages-index-js-a048a1dcfe3b65279492.js","sourcesContent":["import React from \"react\"\nimport { Link, graphql } from \"gatsby\"\n\nimport Bio from \"../components/bio\"\nimport Layout from \"../components/layout\"\nimport SEO from \"../components/seo\"\nimport { rhythm } from \"../utils/typography\"\n\nclass BlogIndex extends React.Component {\n render() {\n const { data } = this.props\n const siteTitle = data.site.siteMetadata.title\n const posts = data.allMarkdownRemark.edges\n\n return (\n <Layout location={this.props.location} title={siteTitle}>\n <SEO title=\"All posts\" />\n <Bio />\n {posts.map(({ node }) => {\n const title = node.frontmatter.title || node.fields.slug\n return (\n <article key={node.fields.slug}>\n <header>\n <h3\n style={{\n marginBottom: rhythm(1 / 4),\n }}\n >\n <Link style={{ boxShadow: `none` }} to={node.fields.slug}>\n {title}\n </Link>\n </h3>\n <small>{node.frontmatter.date}</small>\n </header>\n <section>\n <p\n dangerouslySetInnerHTML={{\n __html: node.frontmatter.description || node.excerpt,\n }}\n />\n </section>\n </article>\n )\n })}\n </Layout>\n )\n }\n}\n\nexport default BlogIndex\n\nexport const pageQuery = graphql`\n query {\n site {\n siteMetadata {\n title\n }\n }\n allMarkdownRemark(sort: { fields: [frontmatter___date], order: DESC }) {\n edges {\n node {\n excerpt\n fields {\n slug\n }\n frontmatter {\n date(formatString: \"MMMM DD, YYYY\")\n title\n description\n }\n }\n }\n }\n }\n`\n"],"sourceRoot":""}