-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-index-template-js-ef8e4b87d8c3899474f4.js.map
1 lines (1 loc) · 3.38 KB
/
component---src-templates-index-template-js-ef8e4b87d8c3899474f4.js.map
1
{"version":3,"sources":["webpack:///./src/templates/index-template.js"],"names":["__webpack_require__","r","__webpack_exports__","d","query","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","_components_Layout__WEBPACK_IMPORTED_MODULE_1__","_components_Sidebar__WEBPACK_IMPORTED_MODULE_2__","_components_Feed__WEBPACK_IMPORTED_MODULE_3__","_components_Page__WEBPACK_IMPORTED_MODULE_4__","_components_Pagination__WEBPACK_IMPORTED_MODULE_5__","IndexTemplate","_ref","data","pageContext","_data$site$siteMetada","site","siteMetadata","siteTitle","title","siteSubtitle","subtitle","currentPage","hasNextPage","hasPrevPage","prevPagePath","nextPagePath","edges","allMarkdownRemark","pageTitle","a","createElement","description","isIndex"],"mappings":"0FAAAA,EAAAC,EAAAC,GAAAF,EAAAG,EAAAD,EAAA,0BAAAE,IAAA,IAAAC,EAAAL,EAAA,GAAAM,EAAAN,EAAAO,EAAAF,GAAAG,EAAAR,EAAA,KAAAS,EAAAT,EAAA,KAAAU,EAAAV,EAAA,KAAAW,EAAAX,EAAA,KAAAY,EAAAZ,EAAA,KAyCaI,EAAK,YAgCHS,UAjEO,SAAAC,GAA2B,IAAxBC,EAAwBD,EAAxBC,KAAMC,EAAkBF,EAAlBE,YAAkBC,EAI3CF,EAAKG,KAAKC,aAFLC,EAFsCH,EAE7CI,MACUC,EAHmCL,EAG7CM,SAIAC,EAKER,EALFQ,YACAC,EAIET,EAJFS,YACAC,EAGEV,EAHFU,YACAC,EAEEX,EAFFW,aACAC,EACEZ,EADFY,aAGMC,EAAUd,EAAKe,kBAAfD,MACFE,EAAYP,EAAc,EAAd,gBAAkCA,EAAlC,MAAmDJ,EAAcA,EAEnF,OACEd,EAAA0B,EAAAC,cAACzB,EAAA,EAAD,CAAQa,MAAOU,EAAWG,YAAaZ,GACrChB,EAAA0B,EAAAC,cAACxB,EAAA,EAAD,CAAS0B,SAAO,IAChB7B,EAAA0B,EAAAC,cAACtB,EAAA,EAAD,KACEL,EAAA0B,EAAAC,cAACvB,EAAA,EAAD,CAAMmB,MAAOA,IACbvB,EAAA0B,EAAAC,cAACrB,EAAA,EAAD,CACEe,aAAcA,EACdC,aAAcA,EACdF,YAAaA,EACbD,YAAaA","file":"component---src-templates-index-template-js-ef8e4b87d8c3899474f4.js","sourcesContent":["import React from 'react';\nimport { graphql } from 'gatsby';\nimport Layout from '../components/Layout';\nimport Sidebar from '../components/Sidebar';\nimport Feed from '../components/Feed';\nimport Page from '../components/Page';\nimport Pagination from '../components/Pagination';\n\nconst IndexTemplate = ({ data, pageContext }) => {\n const {\n title: siteTitle,\n subtitle: siteSubtitle\n } = data.site.siteMetadata;\n\n const {\n currentPage,\n hasNextPage,\n hasPrevPage,\n prevPagePath,\n nextPagePath\n } = pageContext;\n\n const { edges } = data.allMarkdownRemark;\n const pageTitle = currentPage > 0 ? `Posts - Page ${currentPage} - ${siteTitle}` : siteTitle;\n\n return (\n <Layout title={pageTitle} description={siteSubtitle}>\n <Sidebar isIndex />\n <Page>\n <Feed edges={edges} />\n <Pagination\n prevPagePath={prevPagePath}\n nextPagePath={nextPagePath}\n hasPrevPage={hasPrevPage}\n hasNextPage={hasNextPage}\n />\n </Page>\n </Layout>\n );\n};\n\nexport const query = graphql`\n query IndexTemplate($postsLimit: Int!, $postsOffset: Int!) {\n site {\n siteMetadata {\n title\n subtitle\n }\n }\n allMarkdownRemark(\n limit: $postsLimit,\n skip: $postsOffset,\n filter: { frontmatter: { template: { eq: \"post\" }, draft: { ne: true } } },\n sort: { order: DESC, fields: [frontmatter___date] }\n ){\n edges {\n node {\n fields {\n slug\n categorySlug\n }\n frontmatter {\n title\n date\n category\n description\n }\n }\n }\n }\n }\n`;\n\nexport default IndexTemplate;\n"],"sourceRoot":""}