-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-post-template-tsx-0687084d85202e562b97.js
2 lines (2 loc) · 4.22 KB
/
component---src-templates-post-template-tsx-0687084d85202e562b97.js
1
2
"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[841],{7705:function(t,e,r){r.r(e),r.d(e,{default:function(){return z}});var n=r(644),a=r(1858),l=r(9558),o=r(3812),s=r(7437);const i=(0,n.A)("div",{target:"e10ncnnk3"})({name:"q8tcx3",styles:"border-bottom:1px solid var(--color-gray);padding-bottom:2rem;margin-bottom:3rem"}),c=(0,n.A)("h2",{target:"e10ncnnk2"})({name:"qqcjl4",styles:"font-size:42px;font-weight:normal;line-height:1.25;overflow-wrap:break-word;word-break:break-word"}),g=(0,n.A)("div",{target:"e10ncnnk1"})({name:"1fcbzea",styles:"font-size:var(--font-small);color:var(--color-graytext);margin-top:3rem;column-gap:8px;svg{margin-right:4px;}&>p{padding:2px 0;}"}),m=(0,n.A)("p",{target:"e10ncnnk0"})({name:"1k3ijd",styles:"font-size:var(--font-small);color:var(--color-graytext);margin-bottom:20px"});var u=function(t){let{title:e,date:r,update:n,categories:a}=t;return(0,s.Y)(i,null,(0,s.Y)(m,null,r),(0,s.Y)(c,null,e),(0,s.Y)(g,{className:"flex items-center wrap"},(0,s.Y)("p",{className:"flex items-center"},(0,s.Y)(l.A,{customStyle:"fill-gray stroke-gray size-s"}),a.join(", ")),r!==n&&(0,s.Y)("p",{className:"flex items-center update"},(0,s.Y)(o.A,{customStyle:"fill-gray size-s"}),"Last Updated ",n)))};const d=(0,n.A)("div",{target:"e1iq48ov0"})({name:"1yuu52k",styles:"word-break:break-all;line-height:1.8;font-size:1rem;font-weight:400;p{padding:5px 0;}h1,h2,h3{font-weight:400;margin-bottom:20px;}*+h1,*+h2,*+h3{margin-top:2.5rem;}hr+h1,hr+h2,hr+h3{margin-top:0;}h1{font-size:2rem;}h2{font-size:1.5rem;}h3{font-size:1.25rem;}blockquote{margin:30px 0;padding:5px 15px;border-left:2px solid var(--color-black);font-weight:400;}ol,ul{margin-left:20px;padding:1.5rem 0;}li{list-style:auto;}hr{margin:2.5rem 0;}a{color:inherit;text-decoration:underline;}pre[class*='language-']{margin:30px 0;padding:15px;font-size:15px;::-webkit-scrollbar-thumb{background:rgba(255, 255, 255, 0.5);border-radius:3px;}}code[class*='language-'],pre[class*='language-']{tab-size:2;}"});var p=function(t){let{html:e}=t;return(0,s.Y)(d,{dangerouslySetInnerHTML:{__html:e}})},f=r(6540);const h=(0,n.A)("div",{target:"e15paqjp0"})("");var x=function(){const t=(0,f.createRef)();return(0,f.useEffect)((()=>{if(null===t.current)return;const e=document.createElement("script"),r={src:"https://utteranc.es/client.js",repo:"soheetech/TIL","issue-term":"pathname",label:"Comment",theme:"github-light",crossorigin:"anonymous",async:"true"};Object.entries(r).forEach((t=>{let[r,n]=t;e.setAttribute(r,n)})),t.current.appendChild(e)}),[]),(0,s.Y)(h,{ref:t})},b=r(4810);const v=(0,n.A)("ul",{target:"e183grcu3"})({name:"d3v9zr",styles:"overflow:hidden"}),y=(0,n.A)("li",{target:"e183grcu2"})({name:"nlr0nn",styles:"width:calc(50% - 30px);&.left{float:left;}&.right{float:right;text-align:right;}a{max-width:100%;&:hover strong{text-decoration:underline;}}"}),Y=(0,n.A)("p",{target:"e183grcu1"})({name:"fn0rwb",styles:"font:var(--font-italic);color:var(--color-graytext);margin-bottom:12px"}),w=(0,n.A)("p",{target:"e183grcu0"})({name:"ra3agi",styles:"strong{-webkit-line-clamp:1;font-weight:400;}"});var k=function(t){let{prevPost:e,nextPost:r}=t;return(0,s.Y)(v,null,null!==r&&(0,s.Y)(y,{className:"left"},(0,s.Y)(b.N_,{to:r.node.fields.slug},(0,s.Y)(Y,null,"← Previous"),(0,s.Y)(w,null,(0,s.Y)("strong",{className:"text-overflow"},r.node.frontmatter.title)))),null!==e&&(0,s.Y)(y,{className:"right"},(0,s.Y)(b.N_,{to:e.node.fields.slug},(0,s.Y)(Y,null,"Next →"),(0,s.Y)(w,null,(0,s.Y)("strong",{className:"text-overflow"},e.node.frontmatter.title)))))};const A=(0,n.A)("div",{target:"e754s4s0"})({name:"dpa6rq",styles:"border-top:1px solid var(--color-gray);margin:3rem 0;padding-top:2rem;h3{font-size:1.5rem;font-weight:400;margin-bottom:1.25rem;}"});var z=function(t){let{data:{allMarkdownRemark:{edges:e}},location:{href:r},pageContext:{prev:n,next:l}}=t;const{node:{html:o,frontmatter:{title:i,summary:c,date:g,update:m,categories:d}}}=e[0];return(0,s.Y)(a.A,{title:i,description:c,url:r},(0,s.Y)(u,{title:i,date:g,update:m,categories:d}),(0,s.Y)(p,{html:o}),(0,s.Y)(A,null,(0,s.Y)("h3",null,"Comments"),(0,s.Y)(x,null)),(0,s.Y)(k,{prevPost:n||null,nextPost:l||null}))}}}]);
//# sourceMappingURL=component---src-templates-post-template-tsx-0687084d85202e562b97.js.map