{"version":3,"sources":["webpack:///./src/components/Post/index.jsx","webpack:///./src/pages/index.jsx"],"names":["Post","render","this","props","data","node","frontmatter","title","date","category","description","fields","slug","categorySlug","className","dateTime","moment","format","key","to","React","Component","IndexRoute","items","site","siteMetadata","posts","allMarkdownRemark","edges","forEach","post","push","type","name"],"mappings":"4LAKMA,G,4GACJC,OAAA,WAAU,IAAD,EAMHC,KAAKC,MAAMC,KAAKC,KAAKC,YAJvBC,EAFK,EAELA,MACAC,EAHK,EAGLA,KACAC,EAJK,EAILA,SACAC,EALK,EAKLA,YALK,EAOwBR,KAAKC,MAAMC,KAAKC,KAAKM,OAA5CC,EAPD,EAOCA,KAAMC,EAPP,EAOOA,aAEd,OACE,yBAAKC,UAAU,QACb,yBAAKA,UAAU,cACb,0BACEA,UAAU,kBACVC,SAAUC,IAAOR,GAAMS,OAAO,iBAE7BD,IAAOR,GAAMS,OAAO,cAEvB,0BAAMH,UAAU,uBAChB,0BAAMA,UAAU,sBAAsBI,IAAKL,GACzC,kBAAC,OAAD,CAAMM,GAAIN,EAAcC,UAAU,4BAC/BL,KAIP,wBAAIK,UAAU,eACZ,kBAAC,OAAD,CAAMA,UAAU,mBAAmBK,GAAIP,GACpCL,IAGL,uBAAGO,UAAU,qBAAqBJ,GAClC,kBAAC,OAAD,CAAMI,UAAU,iBAAiBK,GAAIP,GAArC,e,GAhCWQ,IAAMC,YAwCVrB,O,8HCtCTsB,E,kGACJrB,OAAA,WACE,IAAMsB,EAAQ,GAEZhB,EACEL,KAAKC,MAAMC,KAAKoB,KAAKC,aADvBlB,MAGImB,EAAQxB,KAAKC,MAAMC,KAAKuB,kBAAkBC,MAMhD,OAJAF,EAAMG,SAAQ,SAAAC,GACZP,EAAMQ,KAAK,kBAAC,IAAD,CAAM3B,KAAM0B,EAAMZ,IAAKY,EAAKzB,KAAKM,OAAOC,WAInD,kBAAC,IAAD,KACE,6BACE,kBAAC,IAAD,iBAASV,KAAKC,MAAd,CAAqB6B,KAAK,OAAON,MAAOA,EAAOhB,YAAY,qEAAqEuB,KAAM1B,KACtI,kBAAC,IAAYL,KAAKC,OAClB,yBAAKW,UAAU,WACb,yBAAKA,UAAU,kBAAkBS,O,GAnBpBH,IAAMC,WA2BhBC","file":"component---src-pages-index-jsx-0c8e1c36752312e8f1ca.js","sourcesContent":["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 more\n \n
\n )\n }\n}\n\nexport default Post\n","import React from 'react'\nimport { graphql } from 'gatsby'\nimport Layout from '../components/Layout'\nimport SEO from '../components/SEO'\nimport Post from '../components/Post'\nimport Sidebar from '../components/Sidebar'\n\nclass IndexRoute extends React.Component {\n render() {\n const items = []\n const {\n title,\n } = this.props.data.site.siteMetadata\n\n const posts = this.props.data.allMarkdownRemark.edges\n\n posts.forEach(post => {\n items.push()\n })\n\n return (\n \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 siteUrl\n menu {\n label\n path\n }\n author {\n name\n linkedin\n twitter\n github\n rss\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"],"sourceRoot":""}