-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-index-js-70aebecc23a2d80eaace.js.map
1 lines (1 loc) · 3.72 KB
/
component---src-pages-index-js-70aebecc23a2d80eaace.js.map
1
{"version":3,"sources":["webpack:///./src/pages/index.js"],"names":["BlogIndex","data","location","siteTitle","site","siteMetadata","title","posts","allMarkdownRemark","nodes","length","style","listStyle","map","post","frontmatter","fields","slug","key","className","itemScope","itemType","to","itemProp","date","dangerouslySetInnerHTML","__html","description","excerpt","pageQuery"],"mappings":"2FAAA,0HAiEeA,UA1DG,SAAC,GAAwB,IAAD,EAArBC,EAAqB,EAArBA,KAAMC,EAAe,EAAfA,SACnBC,GAAY,UAAAF,EAAKG,KAAKC,oBAAV,eAAwBC,QAAxB,QACZC,EAAQN,EAAKO,kBAAkBC,MAErC,OAAqB,IAAjBF,EAAMG,OAEN,kBAAC,IAAD,CAAQR,SAAUA,EAAUI,MAAOH,GACjC,kBAAC,IAAD,CAAKG,MAAM,cACX,kBAAC,IAAD,MACA,yLAUJ,kBAAC,IAAD,CAAQJ,SAAUA,EAAUI,MAAOH,GACjC,kBAAC,IAAD,CAAKG,MAAM,cACX,kBAAC,IAAD,MACA,wBAAIK,MAAO,CAAEC,UAAU,SACpBL,EAAMM,KAAI,SAAAC,GACT,IAAMR,EAAQQ,EAAKC,YAAYT,OAASQ,EAAKE,OAAOC,KAEpD,OACE,wBAAIC,IAAKJ,EAAKE,OAAOC,MACnB,6BACEE,UAAU,iBACVC,WAAS,EACTC,SAAS,6BAET,gCACE,4BACE,kBAAC,OAAD,CAAMC,GAAIR,EAAKE,OAAOC,KAAMM,SAAS,OACnC,0BAAMA,SAAS,YAAYjB,KAG/B,+BAAQQ,EAAKC,YAAYS,OAE3B,iCACE,uBACEC,wBAAyB,CACvBC,OAAQZ,EAAKC,YAAYY,aAAeb,EAAKc,SAE/CL,SAAS,yBActB,IAAMM,EAAS","file":"component---src-pages-index-js-70aebecc23a2d80eaace.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 BlogIndex = ({ data, location }) => {\r\n const siteTitle = data.site.siteMetadata?.title || `Title`\r\n const posts = data.allMarkdownRemark.nodes\r\n\r\n if (posts.length === 0) {\r\n return (\r\n <Layout location={location} title={siteTitle}>\r\n <SEO title=\"All posts\" />\r\n <Bio />\r\n <p>\r\n No blog posts found. Add markdown posts to \"content/blog\" (or the\r\n directory you specified for the \"gatsby-source-filesystem\" plugin in\r\n gatsby-config.js).\r\n </p>\r\n </Layout>\r\n )\r\n }\r\n\r\n return (\r\n <Layout location={location} title={siteTitle}>\r\n <SEO title=\"All posts\" />\r\n <Bio />\r\n <ol style={{ listStyle: `none` }}>\r\n {posts.map(post => {\r\n const title = post.frontmatter.title || post.fields.slug\r\n\r\n return (\r\n <li key={post.fields.slug}>\r\n <article\r\n className=\"post-list-item\"\r\n itemScope\r\n itemType=\"http://schema.org/Article\"\r\n >\r\n <header>\r\n <h2>\r\n <Link to={post.fields.slug} itemProp=\"url\">\r\n <span itemProp=\"headline\">{title}</span>\r\n </Link>\r\n </h2>\r\n <small>{post.frontmatter.date}</small>\r\n </header>\r\n <section>\r\n <p\r\n dangerouslySetInnerHTML={{\r\n __html: post.frontmatter.description || post.excerpt,\r\n }}\r\n itemProp=\"description\"\r\n />\r\n </section>\r\n </article>\r\n </li>\r\n )\r\n })}\r\n </ol>\r\n </Layout>\r\n )\r\n}\r\n\r\nexport default BlogIndex\r\n\r\nexport const pageQuery = graphql`\r\n query {\r\n site {\r\n siteMetadata {\r\n title\r\n }\r\n }\r\n allMarkdownRemark(sort: { fields: [frontmatter___date], order: DESC }) {\r\n nodes {\r\n excerpt\r\n fields {\r\n slug\r\n }\r\n frontmatter {\r\n date(formatString: \"MMMM DD, YYYY\")\r\n title\r\n description\r\n }\r\n }\r\n }\r\n }\r\n`\r\n"],"sourceRoot":""}