-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-category-template-jsx-0127eceb38a83b45447f.js.map
1 lines (1 loc) · 5.31 KB
/
component---src-templates-category-template-jsx-0127eceb38a83b45447f.js.map
1
{"version":3,"sources":["webpack:///./src/components/Post/index.jsx","webpack:///./src/components/CategoryTemplateDetails/index.jsx","webpack:///./src/templates/category-template.jsx"],"names":["Post","render","this","props","data","node","frontmatter","title","date","category","description","fields","slug","categorySlug","className","dateTime","moment","format","key","to","React","Component","CategoryTemplateDetails","items","pageContext","allMarkdownRemark","edges","forEach","post","push","CategoryTemplate","site","siteMetadata","Layout","Sidebar","pageQuery"],"mappings":"6LAKMA,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,U,GAhCWQ,IAAMC,YAwCVrB,O,iLCpBAsB,E,kGArBbrB,OAAA,WACE,IAAMsB,EAAQ,GACNd,EAAaP,KAAKC,MAAMqB,YAAxBf,SAMR,OALcP,KAAKC,MAAMC,KAAKqB,kBAAkBC,MAC1CC,SAAQ,SAAAC,GACZL,EAAMM,KAAK,kBAAC7B,EAAA,EAAD,CAAMI,KAAMwB,EAAMV,IAAKU,EAAKvB,KAAKM,OAAOC,WAInD,yBAAKE,UAAU,WACb,yBAAKA,UAAU,kBACb,yBAAKA,UAAU,QACb,wBAAIA,UAAU,eAAeL,GAC7B,yBAAKK,UAAU,cAAcS,O,GAdHH,IAAMC,WCItCS,E,kGACJ7B,OAAA,WAAU,IACAM,EAAUL,KAAKC,MAAMC,KAAK2B,KAAKC,aAA/BzB,MACAE,EAAaP,KAAKC,MAAMqB,YAAxBf,SAER,OACE,kBAACwB,EAAA,EAAD,KACE,6BACE,kBAAC,IAAD,CAAQ1B,MAAUE,EAAL,MAAmBF,IAChC,kBAAC2B,EAAA,EAAYhC,KAAKC,OAClB,kBAAC,EAA4BD,KAAKC,U,GAVbiB,IAAMC,WAmBxBc,GAFEL,YAEO","file":"component---src-templates-category-template-jsx-0127eceb38a83b45447f.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 <div className=\"post\">\n <div className=\"post__meta\">\n <time\n className=\"post__meta-time\"\n dateTime={moment(date).format('MMMM D, YYYY')}\n >\n {moment(date).format('MMMM YYYY')}\n </time>\n <span className=\"post__meta-divider\" />\n <span className=\"post__meta-category\" key={categorySlug}>\n <Link to={categorySlug} className=\"post__meta-category-link\">\n {category}\n </Link>\n </span>\n </div>\n <h2 className=\"post__title\">\n <Link className=\"post__title-link\" to={slug}>\n {title}\n </Link>\n </h2>\n <p className=\"post__description\">{description}</p>\n <Link className=\"post__readmore\" to={slug}>\n Read\n </Link>\n </div>\n )\n }\n}\n\nexport default Post\n","import React from 'react'\nimport Post from '../Post'\n\nclass CategoryTemplateDetails extends React.Component {\n render() {\n const items = []\n const { category } = this.props.pageContext\n const posts = this.props.data.allMarkdownRemark.edges\n posts.forEach(post => {\n items.push(<Post data={post} key={post.node.fields.slug} />)\n })\n\n return (\n <div className=\"content\">\n <div className=\"content__inner\">\n <div className=\"page\">\n <h1 className=\"page__title\">{category}</h1>\n <div className=\"page__body\">{items}</div>\n </div>\n </div>\n </div>\n )\n }\n}\n\nexport default CategoryTemplateDetails\n","import React from 'react'\nimport Helmet from 'react-helmet'\nimport { graphql } from 'gatsby'\nimport Layout from '../components/Layout'\nimport Sidebar from '../components/Sidebar'\nimport CategoryTemplateDetails from '../components/CategoryTemplateDetails'\n\nclass CategoryTemplate extends React.Component {\n render() {\n const { title } = this.props.data.site.siteMetadata\n const { category } = this.props.pageContext\n\n return (\n <Layout>\n <div>\n <Helmet title={`${category} - ${title}`} />\n <Sidebar {...this.props} />\n <CategoryTemplateDetails {...this.props} />\n </div>\n </Layout>\n )\n }\n}\n\nexport default CategoryTemplate\n\nexport const pageQuery = graphql`\n query CategoryPage($category: String) {\n site {\n siteMetadata {\n title\n subtitle\n copyright\n menu {\n label\n path\n }\n author {\n name\n email\n twitter\n }\n }\n }\n allMarkdownRemark(\n limit: 1000\n filter: {\n frontmatter: {\n category: { eq: $category }\n layout: { eq: \"post\" }\n draft: { ne: true }\n }\n }\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":""}