forked from Akkatecture/Akkatecture.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-layouts-index-jsx-a409ab0e4c759ed4cd55.js
2 lines (2 loc) · 2.8 KB
/
component---src-layouts-index-jsx-a409ab0e4c759ed4cd55.js
1
2
webpackJsonp([79611799117203,60335399758886],{109:function(e,t){e.exports={layoutContext:{}}},213:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(3),l=n(o),i=r(221),u=n(i),c=r(109),f=n(c);t.default=function(e){return l.default.createElement(u.default,a({},e,f.default))},e.exports=t.default},313:function(e,t){},314:function(e,t){},221:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 l(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=r(3),u=n(i),c=r(26),f=n(c),s=r(21),p=(n(s),r(23)),d=n(p);r(313),r(314);var h=r(222),b=n(h),y=function(e){function t(){return a(this,t),o(this,e.apply(this,arguments))}return l(t,e),t.prototype.getLocalTitle=function(){function e(e){return e.charAt(0).toUpperCase()+e.slice(1)}var t=d.default.pathPrefix?d.default.pathPrefix:"/",r=this.props.location.pathname.replace(t,"").replace("/",""),n="";if(""===r)n="Home";else if("tags/"===r)n="Tags";else if("categories/"===r)n="Categories";else if("about/"===r)n="About";else if(r.includes("posts"))n="Article";else if(r.includes("tags/")){var a=r.replace("tags/","").replace("/","").replace("-"," ");n="Tagged in "+e(a)}else if(r.includes("categories/")){var o=r.replace("categories/","").replace("/","").replace("-"," ");n=""+e(o)}return n},t.prototype.render=function(){var e=this.props.children;return u.default.createElement("div",null,u.default.createElement(f.default,null,u.default.createElement("title",null,d.default.siteTitle+" | "+this.getLocalTitle()),u.default.createElement("meta",{name:"description",content:d.default.siteDescription})),u.default.createElement(s.ThemeProvider,{theme:b.default},e()))},t}(u.default.Component);t.default=y,e.exports=t.default},222:function(e,t){"use strict";t.__esModule=!0;var r=850,n={brand:"#2C3E50",accent:"#ECF0F1",accentDark:"#2980B9",lightGrey:"#2C3E501A",darkGrey:"#2C3E50",ink:"black",errorRed:"#E74C3C",codeEditBlue:"#2980B9",codeEditGreen:"#42b983",contentWidthLaptop:r+"px",widthLaptop:r/2*3+"px",sitePadding:"25px"};t.default=n,e.exports=t.default}});
//# sourceMappingURL=component---src-layouts-index-jsx-a409ab0e4c759ed4cd55.js.map