{"version":3,"sources":["webpack:///./src/pages/index.jsx","webpack:///./src/components/Post/index.jsx"],"names":["IndexRoute","render","items","_this$props$data$site","this","props","data","site","siteMetadata","title","subtitle","allMarkdownRemark","edges","forEach","post","push","react__WEBPACK_IMPORTED_MODULE_3___default","a","createElement","_components_Post__WEBPACK_IMPORTED_MODULE_6__","key","node","fields","slug","_components_Layout__WEBPACK_IMPORTED_MODULE_5__","react_helmet__WEBPACK_IMPORTED_MODULE_4___default","name","content","_components_Sidebar__WEBPACK_IMPORTED_MODULE_7__","className","React","Component","pageQuery","Post","_this$props$data$node","frontmatter","date","category","description","_this$props$data$node2","categorySlug","react__WEBPACK_IMPORTED_MODULE_1___default","dateTime","moment","format","gatsby__WEBPACK_IMPORTED_MODULE_2__","to"],"mappings":"uOAOMA,4FACJC,kBACE,IAAMC,EAAQ,GADPC,EAEqBC,KAAKC,MAAMC,KAAKC,KAAKC,aAAzCC,EAFDN,EAECM,MAAOC,EAFRP,EAEQO,SAMf,OALcN,KAAKC,MAAMC,KAAKK,kBAAkBC,MAC1CC,QAAQ,SAAAC,GACZZ,EAAMa,KAAKC,EAAAC,EAAAC,cAACC,EAAA,EAAD,CAAMb,KAAMQ,EAAMM,IAAKN,EAAKO,KAAKC,OAAOC,UAInDP,EAAAC,EAAAC,cAACM,EAAA,EAAD,KACER,EAAAC,EAAAC,cAAA,WACEF,EAAAC,EAAAC,cAACO,EAAAR,EAAD,KACED,EAAAC,EAAAC,cAAA,aAAQT,GACRO,EAAAC,EAAAC,cAAA,QAAMQ,KAAK,cAAcC,QAASjB,KAEpCM,EAAAC,EAAAC,cAACU,EAAA,EAAYxB,KAAKC,OAClBW,EAAAC,EAAAC,cAAA,OAAKW,UAAU,WACbb,EAAAC,EAAAC,cAAA,OAAKW,UAAU,kBAAkB3B,UAlBpB4B,IAAMC,WA0BhB/B,YAER,IAAMgC,EAAS,6GC9BhBC,oGACJhC,kBAAS,IAAAiC,EAMH9B,KAAKC,MAAMC,KAAKe,KAAKc,YAJvB1B,EAFKyB,EAELzB,MACA2B,EAHKF,EAGLE,KACAC,EAJKH,EAILG,SACAC,EALKJ,EAKLI,YALKC,EAOwBnC,KAAKC,MAAMC,KAAKe,KAAKC,OAA5CC,EAPDgB,EAOChB,KAAMiB,EAPPD,EAOOC,aAEd,OACEC,EAAAxB,EAAAC,cAAA,OAAKW,UAAU,QACbY,EAAAxB,EAAAC,cAAA,OAAKW,UAAU,cACbY,EAAAxB,EAAAC,cAAA,QACEW,UAAU,kBACVa,SAAUC,IAAOP,GAAMQ,OAAO,iBAE7BD,IAAOP,GAAMQ,OAAO,cAEvBH,EAAAxB,EAAAC,cAAA,QAAMW,UAAU,uBAChBY,EAAAxB,EAAAC,cAAA,QAAMW,UAAU,sBAAsBT,IAAKoB,GACzCC,EAAAxB,EAAAC,cAAC2B,EAAA,KAAD,CAAMC,GAAIN,EAAcX,UAAU,4BAC/BQ,KAIPI,EAAAxB,EAAAC,cAAA,MAAIW,UAAU,eACZY,EAAAxB,EAAAC,cAAC2B,EAAA,KAAD,CAAMhB,UAAU,mBAAmBiB,GAAIvB,GACpCd,IAGLgC,EAAAxB,EAAAC,cAAA,KAAGW,UAAU,qBAAqBS,GAClCG,EAAAxB,EAAAC,cAAC2B,EAAA,KAAD,CAAMhB,UAAU,iBAAiBiB,GAAIvB,GAArC,aAhCWO,IAAMC,YAwCVE","file":"component---src-pages-index-jsx-5840aa0be923625238c8.js","sourcesContent":["import React from 'react'\nimport Helmet from 'react-helmet'\nimport { graphql } from 'gatsby'\nimport Layout from '../components/Layout'\nimport Post from '../components/Post'\nimport Sidebar from '../components/Sidebar'\n\nclass IndexRoute extends React.Component {\n render() {\n const items = []\n const { title, subtitle } = this.props.data.site.siteMetadata\n const posts = this.props.data.allMarkdownRemark.edges\n posts.forEach(post => {\n items.push()\n })\n\n return (\n \n
\n \n {title}\n \n \n \n
\n
{items}
\n
\n
\n
\n )\n }\n}\n\nexport default IndexRoute\n\nexport const pageQuery = graphql`\n query IndexQuery {\n site {\n siteMetadata {\n title\n subtitle\n copyright\n menu {\n label\n path\n }\n author {\n picture\n name\n email\n twitter\n github\n linkedin\n }\n }\n }\n allMarkdownRemark(\n limit: 1000\n filter: { frontmatter: { layout: { 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","import React from 'react'\nimport { Link } from 'gatsby'\nimport moment from 'moment'\nimport './style.scss'\n\nclass Post extends React.Component {\n render() {\n const {\n title,\n date,\n category,\n description,\n } = this.props.data.node.frontmatter\n const { slug, categorySlug } = this.props.data.node.fields\n\n return (\n
\n
\n \n {moment(date).format('MMMM YYYY')}\n \n \n \n \n {category}\n \n \n
\n

\n \n {title}\n \n

\n

{description}

\n \n Read\n \n
\n )\n }\n}\n\nexport default Post\n"],"sourceRoot":""}