-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-index-js-9b8e4928f98d6a624405.js.map
1 lines (1 loc) · 3.66 KB
/
component---src-templates-index-js-9b8e4928f98d6a624405.js.map
1
{"version":3,"sources":["webpack:///./src/templates/index.js"],"names":["Index","data","pageContext","nextPagePath","previousPagePath","posts","allMarkdownRemark","edges","map","node","id","autoExcerpt","excerpt","frontmatter","title","date","path","author","coverImage","tags","series","key","previousPath","previousLabel","nextPath","nextLabel","propTypes","PropTypes","object","isRequired","shape","string","postsQuery"],"mappings":"2FAAA,gJAQMA,EAAQ,SAAC,GAA+D,IAA7DC,EAA4D,EAA5DA,KAA4D,IAAtDC,YAAeC,EAAuC,EAAvCA,aAAcC,EAAyB,EAAzBA,iBAEpBC,EAC1BJ,EADFK,kBAAqBC,MAGvB,OACE,oCACE,kBAAC,IAAD,MACA,kBAAC,IAAD,KACGF,EAAMG,KAAI,YAAe,IAAZC,EAAW,EAAXA,KAEVC,EAYED,EAZFC,GACSC,EAWPF,EAXFG,QAHqB,EAcnBH,EAVFI,YACEC,EALmB,EAKnBA,MACAC,EANmB,EAMnBA,KACAC,EAPmB,EAOnBA,KACAC,EARmB,EAQnBA,OACAC,EATmB,EASnBA,WACAN,EAVmB,EAUnBA,QACAO,EAXmB,EAWnBA,KACAC,EAZmB,EAYnBA,OAIJ,OACE,kBAAC,IAAD,CACEC,IAAKX,EACLI,MAAOA,EACPC,KAAMA,EACNC,KAAMA,EACNC,OAAQA,EACRC,WAAYA,EACZC,KAAMA,EACNC,OAAQA,EACRR,QAASA,GAAWD,OAK1B,kBAAC,IAAD,CACEW,aAAclB,EACdmB,cAAc,cACdC,SAAUrB,EACVsB,UAAU,mBAOpBzB,EAAM0B,UAAY,CAChBzB,KAAM0B,IAAUC,OAAOC,WACvB3B,YAAayB,IAAUG,MAAM,CAC3B3B,aAAcwB,IAAUI,OACxB3B,iBAAkBuB,IAAUI,UAIzB,IAAMC,EAAU,aAqCRhC","file":"component---src-templates-index-js-9b8e4928f98d6a624405.js","sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { graphql } from 'gatsby'\nimport SEO from '../components/seo'\nimport Layout from '../components/layout'\nimport Post from '../components/post'\nimport Navigation from '../components/navigation'\n\nconst Index = ({ data, pageContext: { nextPagePath, previousPagePath } }) => {\n const {\n allMarkdownRemark: { edges: posts },\n } = data\n\n return (\n <>\n <SEO />\n <Layout>\n {posts.map(({ node }) => {\n const {\n id,\n excerpt: autoExcerpt,\n frontmatter: {\n title,\n date,\n path,\n author,\n coverImage,\n excerpt,\n tags,\n series,\n },\n } = node\n\n return (\n <Post\n key={id}\n title={title}\n date={date}\n path={path}\n author={author}\n coverImage={coverImage}\n tags={tags}\n series={series}\n excerpt={excerpt || autoExcerpt}\n />\n )\n })}\n\n <Navigation\n previousPath={previousPagePath}\n previousLabel=\"Newer posts\"\n nextPath={nextPagePath}\n nextLabel=\"Older posts\"\n />\n </Layout>\n </>\n )\n}\n\nIndex.propTypes = {\n data: PropTypes.object.isRequired,\n pageContext: PropTypes.shape({\n nextPagePath: PropTypes.string,\n previousPagePath: PropTypes.string,\n }),\n}\n\nexport const postsQuery = graphql`\n query($limit: Int!, $skip: Int!) {\n allMarkdownRemark(\n filter: { fileAbsolutePath: { regex: \"//posts//\" } }\n sort: { fields: [frontmatter___date], order: DESC }\n limit: $limit\n skip: $skip\n ) {\n edges {\n node {\n id\n excerpt\n frontmatter {\n title\n date(formatString: \"DD MMMM YYYY\")\n path\n author\n excerpt\n tags\n series {\n title\n path\n }\n coverImage {\n childImageSharp {\n fluid(maxWidth: 800) {\n ...GatsbyImageSharpFluid\n }\n }\n }\n }\n }\n }\n }\n }\n`\n\nexport default Index\n"],"sourceRoot":""}