-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-post-template-jsx-56e088bd8f33fc5106b8.js
2 lines (2 loc) · 3.97 KB
/
component---src-templates-post-template-jsx-56e088bd8f33fc5106b8.js
1
2
webpackJsonp([0x623bdfc73907],{226:function(e,t,n){"use strict";function a(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 l(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 o(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 s=n(1),i=a(s),u=n(15),c=a(u),f=n(75),p=a(f);n(434);var d=function(e){function t(){return r(this,t),l(this,e.apply(this,arguments))}return o(t,e),t.prototype.componentDidMount=function(){var e=document.createElement("script");e.setAttribute("src","https://utteranc.es/client.js"),e.setAttribute("repo","EunJung-Seo/EunJung-Seo.github.io"),e.setAttribute("branch","master"),e.setAttribute("issue-term","title"),e.setAttribute("async",!0);var t=document.querySelector(".post-sigle__comments");t.append(e)},t.prototype.render=function(){var e=this.props.data.site.siteMetadata,t=(e.subtitle,e.author,this.props.data.markdownRemark),n=t.fields.tagSlugs,a=i.default.createElement("div",null,i.default.createElement(c.default,{className:"post-single__home-button",to:"/"},"All Articles")),r=i.default.createElement("div",{className:"post-single__tags"},i.default.createElement("ul",{className:"post-single__tags-list"},n&&n.map(function(e,n){return i.default.createElement("li",{className:"post-single__tags-list-item",key:e},i.default.createElement(c.default,{to:e,className:"post-single__tags-list-item-link"},t.frontmatter.tags[n]))}))),l=i.default.createElement("div",{className:"post-sigle__comments"});return i.default.createElement("div",null,a,i.default.createElement("div",{className:"post-single"},i.default.createElement("div",{className:"post-single__inner"},i.default.createElement("h1",{className:"post-single__title"},t.frontmatter.title),i.default.createElement("div",{className:"post-single__body",dangerouslySetInnerHTML:{__html:t.html}}),i.default.createElement("div",{className:"post-single__date"},i.default.createElement("em",null,"Published ",(0,p.default)(t.frontmatter.date).format("D MMM YYYY")))),i.default.createElement("div",{className:"post-single__footer"},r,i.default.createElement("hr",null),l)))},t}(i.default.Component);t.default=d,e.exports=t.default},434:function(e,t){},235:function(e,t,n){"use strict";function a(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 l(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 o(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 s=n(1),i=a(s),u=n(22),c=a(u),f=n(226),p=a(f),d=function(e){function t(){return r(this,t),l(this,e.apply(this,arguments))}return o(t,e),t.prototype.render=function(){console.log(this.props.data);var e=this.props.data.site.siteMetadata,t=e.title,n=e.subtitle,a=this.props.data.markdownRemark,r=a.frontmatter,l=r.title,o=r.description,s=null!==o?o:n;return i.default.createElement("div",null,i.default.createElement(c.default,null,i.default.createElement("title",null,l+" - "+t),i.default.createElement("meta",{name:"description",content:s})),i.default.createElement(p.default,this.props))},t}(i.default.Component);t.default=d;t.pageQuery="** extracted graphql fragment **"}});
//# sourceMappingURL=component---src-templates-post-template-jsx-56e088bd8f33fc5106b8.js.map