-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-categories-list-template-js-bb02f0a0398634357fdd.js.map
1 lines (1 loc) · 2.95 KB
/
component---src-templates-categories-list-template-js-bb02f0a0398634357fdd.js.map
1
{"version":3,"sources":["webpack:///./src/templates/categories-list-template.js"],"names":["__webpack_require__","r","__webpack_exports__","d","query","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","gatsby__WEBPACK_IMPORTED_MODULE_1__","lodash_kebabCase__WEBPACK_IMPORTED_MODULE_2__","lodash_kebabCase__WEBPACK_IMPORTED_MODULE_2___default","_components_Sidebar__WEBPACK_IMPORTED_MODULE_3__","_components_Layout__WEBPACK_IMPORTED_MODULE_4__","_components_Page__WEBPACK_IMPORTED_MODULE_5__","CategoriesListTemplate","_ref","data","_data$site$siteMetada","site","siteMetadata","title","subtitle","group","allMarkdownRemark","a","createElement","description","map","category","key","fieldValue","to","kebabCase","totalCount"],"mappings":"0FAAAA,EAAAC,EAAAC,GAAAF,EAAAG,EAAAD,EAAA,0BAAAE,IAAA,IAAAC,EAAAL,EAAA,GAAAM,EAAAN,EAAAO,EAAAF,GAAAG,EAAAR,EAAA,IAAAS,EAAAT,EAAA,KAAAU,EAAAV,EAAAO,EAAAE,GAAAE,EAAAX,EAAA,KAAAY,EAAAZ,EAAA,KAAAa,EAAAb,EAAA,KAiCaI,EAAK,aAmBHU,UA7CgB,SAAAC,GAAc,IAAXC,EAAWD,EAAXC,KAAWC,EAIvCD,EAAKE,KAAKC,aAFZC,EAFyCH,EAEzCG,MACAC,EAHyCJ,EAGzCI,SAGMC,EAAUN,EAAKO,kBAAfD,MAER,OACEhB,EAAAkB,EAAAC,cAACb,EAAA,EAAD,CAAQQ,MAAK,gBAAkBA,EAASM,YAAaL,GACnDf,EAAAkB,EAAAC,cAACd,EAAA,EAAD,MACAL,EAAAkB,EAAAC,cAACZ,EAAA,EAAD,CAAMO,MAAM,cACVd,EAAAkB,EAAAC,cAAA,UACGH,EAAMK,IAAI,SAACC,GAAD,OACTtB,EAAAkB,EAAAC,cAAA,MAAII,IAAKD,EAASE,YAChBxB,EAAAkB,EAAAC,cAACjB,EAAA,KAAD,CAAMuB,GAAE,aAAeC,IAAUJ,EAASE,YAAlC,KACLF,EAASE,WADZ,KAC0BF,EAASK,WADnC","file":"component---src-templates-categories-list-template-js-bb02f0a0398634357fdd.js","sourcesContent":["import React from 'react';\r\nimport { Link, graphql } from 'gatsby';\r\nimport kebabCase from 'lodash/kebabCase';\r\nimport Sidebar from '../components/Sidebar';\r\nimport Layout from '../components/Layout';\r\nimport Page from '../components/Page';\r\n\r\nconst CategoriesListTemplate = ({ data }) => {\r\n const {\r\n title,\r\n subtitle\r\n } = data.site.siteMetadata;\r\n\r\n const { group } = data.allMarkdownRemark;\r\n\r\n return (\r\n <Layout title={`Categories - ${title}`} description={subtitle}>\r\n <Sidebar />\r\n <Page title=\"Categories\">\r\n <ul>\r\n {group.map((category) => (\r\n <li key={category.fieldValue}>\r\n <Link to={`/category/${kebabCase(category.fieldValue)}/`}>\r\n {category.fieldValue} ({category.totalCount})\r\n </Link>\r\n </li>\r\n ))}\r\n </ul>\r\n </Page>\r\n </Layout>\r\n );\r\n};\r\n\r\nexport const query = graphql`\r\n query CategoriesListQuery {\r\n site {\r\n siteMetadata {\r\n title\r\n subtitle\r\n }\r\n }\r\n allMarkdownRemark(\r\n filter: { frontmatter: { template: { eq: \"post\" }, draft: { ne: true } } }\r\n ) {\r\n group(field: frontmatter___category) {\r\n fieldValue\r\n totalCount\r\n }\r\n }\r\n }\r\n`;\r\n\r\nexport default CategoriesListTemplate;\r\n"],"sourceRoot":""}