-
Notifications
You must be signed in to change notification settings - Fork 0
/
320.885635a3e980bd07.js
1 lines (1 loc) · 4.18 KB
/
320.885635a3e980bd07.js
1
"use strict";(self.webpackChunkblog_new=self.webpackChunkblog_new||[]).push([[320],{320:(A,u,i)=>{i.r(u),i.d(u,{BlogModule:()=>b});var a=i(808),l=i(101),g=i(247),t=i(96),p=i(645),m=i(313);let h=(()=>{class e{constructor(){}ngOnInit(){this.bgImageUrl||(this.bgImageUrl="assets/images/bg1920x872.jpg")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-post-header"]],inputs:{title:"title",postDate:"postDate",bgImageUrl:"bgImageUrl"},decls:4,vars:1,consts:[[1,"columns"],[1,"column","is-8","is-offset-2"],[1,"image","is-16by9"],["alt","blog image",3,"src"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"figure",2),t._UZ(3,"img",3),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.xp6(3),t.Q6J("src",o.bgImageUrl,t.LSH))},styles:[""]}),e})();function U(e,s){if(1&e&&t._UZ(0,"app-post-header",12),2&e){const n=t.oxw();t.Q6J("bgImageUrl",n.post.bgImageUrl)}}let d=(()=>{class e{constructor(n,o,c,r,T,y){this.scullyService=n,this.blogService=o,this.titleService=c,this.renderer2=r,this.document=T,this.metaService=y}ngOnInit(){this.scullyService.getCurrent().subscribe(o=>{const c=`${o.title} - Thomas Blog`,r=`${o.title} ${o.description||""}`;this.post=o,this.post.date=this.blogService.getPostDateFormRoute(this.post.route),this.titleService.setTitle(c),this.metaService.updateTag({name:"og:title",content:c}),this.metaService.updateTag({name:"twitter:title",content:c}),this.metaService.updateTag({name:"og:site_name",content:c}),this.metaService.updateTag({name:"keywords",content:`${o.title} ${o.keyword||""}`}),this.metaService.updateTag({name:"description",content:r}),this.metaService.updateTag({name:"og:description",content:r}),this.metaService.updateTag({name:"twitter:description",content:r})});const n=this.renderer2.createElement("script");n.type="text/javascript",n.src="https://utteranc.es/client.js",n.setAttribute("repo","thomascsd/thomascsd.github.io"),n.setAttribute("issue-term","pathname"),n.setAttribute("theme","github-light"),n.setAttribute("crossorigin","anonymous"),n.text="",this.renderer2.appendChild(this.document.querySelector("#comments"),n)}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.sG),t.Y36(p.Z),t.Y36(m.Dx),t.Y36(t.Qsj),t.Y36(a.K0),t.Y36(m.h_))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-blog"]],decls:42,vars:3,consts:[[1,"hero"],[1,"hero-body"],[1,"container"],[3,"bgImageUrl",4,"ngIf"],[1,"section"],[1,"columns"],[1,"column","is-8","is-offset-2"],[1,"content","is-medium"],[1,"subtitle","is-4"],[1,"title"],[1,"is-divider"],["id","comments"],[3,"bgImageUrl"]],template:function(n,o){1&n&&(t.TgZ(0,"section",0),t._uU(1,"\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.YNc(6,U,1,1,"app-post-header",3),t._uU(7,"\n\n "),t.TgZ(8,"section",4),t._uU(9,"\n "),t.TgZ(10,"div",5),t._uU(11,"\n "),t.TgZ(12,"div",6),t._uU(13,"\n "),t.TgZ(14,"div",7),t._uU(15,"\n "),t.TgZ(16,"h2",8),t._uU(17),t.qZA(),t._uU(18,"\n "),t._uU(19,"\n\n "),t.TgZ(20,"h1",9),t._uU(21),t.qZA(),t._uU(22,"\n "),t.TgZ(23,"p"),t._uU(24,"\n "),t._UZ(25,"scully-content"),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n\n "),t._UZ(32,"div",10),t._uU(33,"\n "),t.TgZ(34,"section",4),t._uU(35,"\n "),t._UZ(36,"div",11),t._uU(37,"\n "),t.qZA(),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n"),t.qZA(),t._uU(41,"\n")),2&n&&(t.xp6(6),t.Q6J("ngIf",o.post),t.xp6(11),t.Oqu(o.post.date),t.xp6(4),t.Oqu(o.post.title))},directives:[a.O5,l.zS,h],styles:["[_ngcontent-%COMP%]::slotted(h1){color:#330625;background-color:#f8d3ec;padding:5px;border-radius:5px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"]}),e})();const v=[{path:":slug",component:d},{path:"**",component:d}];let Z=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[g.Bz.forChild(v)],g.Bz]}),e})();var f=i(466);let b=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[a.ez,Z,l.cx,f.m]]}),e})()}}]);