-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-index-js-d76db89e23fe117fff74.js.map
1 lines (1 loc) · 3.62 KB
/
component---src-pages-index-js-d76db89e23fe117fff74.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-d76db89e23fe117fff74.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\"\n\nconst BlogIndex = ({ data, location }) => {\n const siteTitle = data.site.siteMetadata?.title || `Title`\n const posts = data.allMarkdownRemark.nodes\n\n if (posts.length === 0) {\n return (\n <Layout location={location} title={siteTitle}>\n <SEO title=\"All posts\" />\n <Bio />\n <p>\n No blog posts found. Add markdown posts to \"content/blog\" (or the\n directory you specified for the \"gatsby-source-filesystem\" plugin in\n gatsby-config.js).\n </p>\n </Layout>\n )\n }\n\n return (\n <Layout location={location} title={siteTitle}>\n <SEO title=\"All posts\" />\n <Bio />\n <ol style={{ listStyle: `none` }}>\n {posts.map(post => {\n const title = post.frontmatter.title || post.fields.slug\n\n return (\n <li key={post.fields.slug}>\n <article\n className=\"post-list-item\"\n itemScope\n itemType=\"http://schema.org/Article\"\n >\n <header>\n <h2>\n <Link to={post.fields.slug} itemProp=\"url\">\n <span itemProp=\"headline\">{title}</span>\n </Link>\n </h2>\n <small>{post.frontmatter.date}</small>\n </header>\n <section>\n <p\n dangerouslySetInnerHTML={{\n __html: post.frontmatter.description || post.excerpt,\n }}\n itemProp=\"description\"\n />\n </section>\n </article>\n </li>\n )\n })}\n </ol>\n </Layout>\n )\n}\n\nexport default BlogIndex\n\nexport const pageQuery = graphql`\n query {\n site {\n siteMetadata {\n title\n }\n }\n allMarkdownRemark(\n sort: { fields: [frontmatter___date], order: DESC },\n filter: {frontmatter: {layout: {eq: \"post\"}}},\n ) {\n nodes {\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"],"sourceRoot":""}