-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-category-jsx-d49afdccf0e73383dc9e.js
2 lines (2 loc) · 5.77 KB
/
component---src-templates-category-jsx-d49afdccf0e73383dc9e.js
1
2
webpackJsonp([0x7600c7af1a80],{223:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(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)}function u(e,t){return e.raw=t,e}t.__esModule=!0;var l=u(["\n display: flex;\n height: 180px;\n position: relative;\n ","\n\n @media screen and (max-width: ","px) {\n height: 100px; \n }\n"],["\n display: flex;\n height: 180px;\n position: relative;\n ","\n\n @media screen and (max-width: ","px) {\n height: 100px; \n }\n"]),c=u(['\n width: 180px;\n height: 180px;\n background-image: url("','");\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n background-color: #ccc;\n\n @media screen and (max-width: ',"px) {\n width: 100px;\n height: 100px; \n }\n"],['\n width: 180px;\n height: 180px;\n background-image: url("','");\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n background-color: #ccc;\n\n @media screen and (max-width: ',"px) {\n width: 100px;\n height: 100px; \n }\n"]),p=u(["\n flex: 1;\n padding: 0 10px;\n overflow: hidden;\n\n & > h4 {\n margin: 0;\n }\n\n & > span {\n display: block;\n color: #bbb;\n }\n\n & > p {\n margin: 0;\n }\n\n @media screen and (max-width: ","px) {\n & > p {\n display: none;\n }\n }\n"],["\n flex: 1;\n padding: 0 10px;\n overflow: hidden;\n\n & > h4 {\n margin: 0;\n }\n\n & > span {\n display: block;\n color: #bbb;\n }\n\n & > p {\n margin: 0;\n }\n\n @media screen and (max-width: ","px) {\n & > p {\n display: none;\n }\n }\n"]),f=n(1),s=r(f),d=n(18),h=r(d),m=600,y=h.default.div(l,function(e){return e.extraStyle||""},m),b=h.default.figure(c,function(e){return e.url},m),g=h.default.div(p,m),x=function(e){function t(){return o(this,t),a(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.post,n=e.extraStyle;return s.default.createElement(y,{extraStyle:n},s.default.createElement(b,{url:t.cover}),s.default.createElement(g,null,s.default.createElement("h4",null,t.title),s.default.createElement("span",null,t.date),s.default.createElement("p",null,t.excerpt)))},t}(f.Component);t.default=x,e.exports=t.default},224:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(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 u=n(1),l=r(u),c=n(29),p=r(c),f=n(223),s=r(f),d=function(e){function t(){return o(this,t),a(this,e.apply(this,arguments))}return i(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(p.default,{to:e.path,key:e.title},l.default.createElement(s.default,{post:e,extraStyle:"margin-bottom: 15px;"}))}))},t}(l.default.Component);t.default=d,e.exports=t.default},230:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(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 u=n(1),l=r(u),c=n(31),p=r(c),f=n(224),s=r(f),d=n(26),h=r(d),m=n(62),y=r(m),b=function(e){function t(){return o(this,t),a(this,e.apply(this,arguments))}return i(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(p.default,{title:'Posts in category "'+e+'" | '+h.default.siteTitle}),l.default.createElement(y.default,{location:this.props.location}),l.default.createElement("div",{style:{padding:"20px",margin:"0 auto",maxWidth:900}},l.default.createElement(s.default,{postEdges:t})))},t}(l.default.Component);t.default=b;t.pageQuery="** extracted graphql fragment **"}});
//# sourceMappingURL=component---src-templates-category-jsx-d49afdccf0e73383dc9e.js.map