-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-category-jsx-4763f67f2565af8b8b58.js
2 lines (2 loc) · 2.83 KB
/
component---src-templates-category-jsx-4763f67f2565af8b8b58.js
1
2
webpackJsonp([0x7600c7af1a80],{252:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var i=n(1),l=o(i),f=n(22),c=o(f),s=function(e){function t(){return r(this,t),a(this,e.apply(this,arguments))}return u(t,e),t.prototype.getPostList=function(){var e=[];return this.props.postEdges.forEach(function(t){e.push({path:t.node.fields.slug,tags:t.node.frontmatter.tags,cover:t.node.frontmatter.cover,title:t.node.frontmatter.title,date:t.node.frontmatter.date,excerpt:t.node.excerpt,timeToRead:t.node.timeToRead})}),e},t.prototype.render=function(){var e=this.getPostList();return l.default.createElement("div",null,e.map(function(e){return l.default.createElement(c.default,{to:e.path,key:e.title},l.default.createElement("h1",null,e.title))}))},t}(l.default.Component);t.default=s,e.exports=t.default},261:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.pageQuery=void 0;var i=n(1),l=o(i),f=n(34),c=o(f),s=n(252),p=o(s),d=n(21),h=o(d),y=n(67),m=o(y),b=function(e){function t(){return r(this,t),a(this,e.apply(this,arguments))}return u(t,e),t.prototype.render=function(){var e=this.props.pathContext.category,t=this.props.data.allMarkdownRemark.edges;return l.default.createElement("div",{className:"category-container"},l.default.createElement(c.default,{title:'Posts in category "'+e+'" | '+h.default.siteTitle}),l.default.createElement(m.default,{location:this.props.location}),l.default.createElement("div",{style:{padding:"0 20px"}},l.default.createElement(p.default,{postEdges:t})))},t}(l.default.Component);t.default=b;t.pageQuery="** extracted graphql fragment **"}});
//# sourceMappingURL=component---src-templates-category-jsx-4763f67f2565af8b8b58.js.map