-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-post-template-post-template-tsx-0e70b20988cce515bc49.js
2 lines (2 loc) · 2.96 KB
/
component---src-templates-post-template-post-template-tsx-0e70b20988cce515bc49.js
1
2
"use strict";(self.webpackChunkgatsby_starter_lumen=self.webpackChunkgatsby_starter_lumen||[]).push([[827],{1286:function(e,t,a){a.r(t),a.d(t,{Head:function(){return v},default:function(){return h}});var l=a(9748),n=a(8840),u=a(9395),r=a(3967),d=a.n(r),s=a(1082);var m=e=>{let{className:t,title:a,to:n}=e;return l.default.createElement(s.Link,{className:d()("Button-module--button--b1113",t),to:n},a)},o=a(1498),c=a(1856),i=a(4614);var f=()=>{const{author:e}=(0,c.$W)();return l.default.createElement("div",{className:"Author-module--author--1c58d"},l.default.createElement("p",{className:"Author-module--bio--08950"},e.bio,l.default.createElement("br",null),l.default.createElement("i",null,"Find Pianobin on ",l.default.createElement("a",{className:"Author-module--twitter--90647",href:(0,i.KA)("youtube",e.contacts.youtube),rel:"noopener noreferrer",target:"_blank"},l.default.createElement("strong",null,"YouTube")),".")))};var E=e=>{let{body:t,title:a}=e;return l.default.createElement("div",{className:"Content-module--content--80d58"},l.default.createElement("h1",{className:"Content-module--title--09504"},a),l.default.createElement("div",{className:"Content-module--body--726c2",dangerouslySetInnerHTML:{__html:t}}))};var g=e=>{let{date:t}=e;return l.default.createElement("div",{className:"Meta-module--meta--dae0a"},l.default.createElement("p",{className:"Meta-module--date--4d30d"},"Published"," ",new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})))};var b=e=>{let{tags:t,tagSlugs:a}=e;return l.default.createElement("div",{className:"Tags-module--tags--18589"},l.default.createElement("ul",{className:"Tags-module--list--82ae6"},a?a.map(((e,a)=>l.default.createElement("li",{className:"Tags-module--item--52015",key:e},l.default.createElement(m,{title:t[a],key:e,to:e})))):null))};var N=e=>{let{post:t}=e;const{html:a}=t,{tagSlugs:n,slug:u}=t.fields,{tags:r,title:d,date:s}=t.frontmatter,[c,i]=l.default.useState(!1);return l.default.createElement("div",{className:"Post-module--post--3a994"},l.default.createElement("div",{className:"Post-module--buttons--2972d"},l.default.createElement(m,{className:"Post-module--buttonArticles--d793a",title:"All Articles",to:"/"}),l.default.createElement(o.O,null)),l.default.createElement("div",{className:"Post-module--content--3c6e5"},l.default.createElement(E,{body:a,title:d})),l.default.createElement("div",{className:"Post-module--footer--f8705"},l.default.createElement(g,{date:s}),r&&n&&l.default.createElement(b,{tags:r,tagSlugs:n}),l.default.createElement(f,null)))};const v=e=>{let{data:t}=e;const{title:a,subtitle:n,url:r}=(0,c.$W)(),{frontmatter:{title:d,description:s="",socialImage:m}}=t.markdownRemark,o=s||n,i=m&&r.concat(m);return l.default.createElement(u.h,{title:d+" - "+a,description:o,image:i})};var h=e=>{let{data:{markdownRemark:t}}=e;return l.default.createElement(n.A,null,l.default.createElement(N,{post:t}))}}}]);
//# sourceMappingURL=component---src-templates-post-template-post-template-tsx-0e70b20988cce515bc49.js.map